mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #17802 from aar0nTw/remove-dependent-with-through-note
[ci skip] Remove outdate note of :dependent in guide
This commit is contained in:
commit
dd4203cfaf
1 changed files with 0 additions and 2 deletions
|
@ -1532,8 +1532,6 @@ Controls what happens to the associated objects when their owner is destroyed:
|
|||
* `:restrict_with_exception` causes an exception to be raised if there are any associated records
|
||||
* `:restrict_with_error` causes an error to be added to the owner if there are any associated objects
|
||||
|
||||
NOTE: This option is ignored when you use the `:through` option on the association.
|
||||
|
||||
##### `:foreign_key`
|
||||
|
||||
By convention, Rails assumes that the column used to hold the foreign key on the other model is the name of this model with the suffix `_id` added. The `:foreign_key` option lets you set the name of the foreign key directly:
|
||||
|
|
Loading…
Reference in a new issue