mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #18860 from alex-handley/enhancement/dependent_documentation_fix
Documentation Fix: Corrects explanation of what happens when dependent is not set
This commit is contained in:
commit
f926c1c953
1 changed files with 1 additions and 1 deletions
|
@ -1014,7 +1014,7 @@ module ActiveRecord
|
|||
# record(s) being removed so that callbacks are run. However <tt>delete</tt> and <tt>delete_all</tt> will either
|
||||
# do the deletion according to the strategy specified by the <tt>:dependent</tt> option, or
|
||||
# if no <tt>:dependent</tt> option is given, then it will follow the default strategy.
|
||||
# The default strategy is <tt>:nullify</tt> (set the foreign keys to <tt>nil</tt>), except for
|
||||
# The default strategy is to do nothing (leave the foreign keys with the parent ids set), except for
|
||||
# +has_many+ <tt>:through</tt>, where the default strategy is <tt>delete_all</tt> (delete
|
||||
# the join records, without running their callbacks).
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue