mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #42571 from p8/guides-fix-spelling-of-assocation
Fix spelling of associations in guides
This commit is contained in:
commit
61d7b79016
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,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 assocations: `taggable_type` and `taggable_id`.
|
||||
be used for polymorphic associations: `taggable_type` and `taggable_id`.
|
||||
|
||||
A foreign key can be created with the the `foreign_key` option.
|
||||
|
||||
|
|
Loading…
Reference in a new issue