diff options
author | Alex Handley <alex@seriousfox.co.uk> | 2015-02-09 14:15:39 +0000 |
---|---|---|
committer | Alex Handley <alex@seriousfox.co.uk> | 2015-02-09 14:15:39 +0000 |
commit | 577a7c6dd16470b901a73b426978ad5e46b613ba (patch) | |
tree | 64d0c662a9a847419e3b4131f931d8511be2f436 | |
parent | 8ba75488773c2d7e4cdf267fb8d4553e8363910c (diff) | |
download | rails-577a7c6dd16470b901a73b426978ad5e46b613ba.tar.gz rails-577a7c6dd16470b901a73b426978ad5e46b613ba.tar.bz2 rails-577a7c6dd16470b901a73b426978ad5e46b613ba.zip |
[ci skip] corrects documentation for the default dependent behaviour
By default the foreign key will remain set with the parent id after
destroy is fired.
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 81a42e22f3..5a3b4f0c40 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -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). # |