aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/multiple_db_test.rb
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2013-05-13 17:10:23 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2013-06-30 14:50:18 +0530
commitf319e4a9421d8815717fd6ca6191268fed9e536d (patch)
tree086cf58278e401835cf6a274124b09c0dfa64f18 /activerecord/test/cases/multiple_db_test.rb
parent4eedb3928e5555e9d766f7c92637a6341c461efb (diff)
downloadrails-f319e4a9421d8815717fd6ca6191268fed9e536d.tar.gz
rails-f319e4a9421d8815717fd6ca6191268fed9e536d.tar.bz2
rails-f319e4a9421d8815717fd6ca6191268fed9e536d.zip
Do not invoke callbacks when delete_all is called
Method `delete_all` should not be invoking callbacks and this feature was deprecated in Rails 4.0. This is being removed. `delete_all` will continue to honor the `:dependent` option. However if `:dependent` value is `:destroy` then the default deletion strategy for that collection will be applied. User can also force a deletion strategy by passing parameter to `delete_all`. For example you can do `@post.comments.delete_all(:nullify)`
Diffstat (limited to 'activerecord/test/cases/multiple_db_test.rb')
0 files changed, 0 insertions, 0 deletions