1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-04 23:58:01 +00:00

Fix typo in code example

This commit is contained in:
jbranchaud
2020-02-20 14:48:16 -06:00
parent 40cbff0049
commit 8a4fedac48

View File

@@ -8,7 +8,7 @@ which allows you to specify whether or not an index is to be added.
```ruby
def up
add_reference :books, :authors, index: true
add_reference :books, :author, index: true
end
```
@@ -19,7 +19,7 @@ using `uuid`s for all your primary keys.
```ruby
def up
add_reference :books, :authors, type: :uuid, index: true
add_reference :books, :author, type: :uuid, index: true
end
```