Fix active_record_migrations guide typo
This commit is contained in:
parent
430826178d
commit
3d9a52f6d1
|
@ -525,7 +525,7 @@ add_belongs_to :taggings, :taggable, polymorphic: true
|
|||
The polymorphic option will create two columns on the taggings table which can
|
||||
be used for polymorphic associations: `taggable_type` and `taggable_id`.
|
||||
|
||||
A foreign key can be created with the the `foreign_key` option.
|
||||
A foreign key can be created with the `foreign_key` option.
|
||||
|
||||
```ruby
|
||||
add_reference :users, :role, foreign_key: true
|
||||
|
|
Loading…
Reference in New Issue