mirror of
https://github.com/jbranchaud/til
synced 2026-01-05 16:18:01 +00:00
Fix typo in code example
This commit is contained in:
@@ -8,7 +8,7 @@ which allows you to specify whether or not an index is to be added.
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
def up
|
def up
|
||||||
add_reference :books, :authors, index: true
|
add_reference :books, :author, index: true
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ using `uuid`s for all your primary keys.
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
def up
|
def up
|
||||||
add_reference :books, :authors, type: :uuid, index: true
|
add_reference :books, :author, type: :uuid, index: true
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user