From 577a7c6dd16470b901a73b426978ad5e46b613ba Mon Sep 17 00:00:00 2001 From: Alex Handley Date: Mon, 9 Feb 2015 14:15:39 +0000 Subject: [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. --- activerecord/lib/active_record/associations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') 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 delete and delete_all will either # do the deletion according to the strategy specified by the :dependent option, or # if no :dependent option is given, then it will follow the default strategy. - # The default strategy is :nullify (set the foreign keys to nil), except for + # The default strategy is to do nothing (leave the foreign keys with the parent ids set), except for # +has_many+ :through, where the default strategy is delete_all (delete # the join records, without running their callbacks). # -- cgit v1.2.3