mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f319e4a942
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)` |
||
---|---|---|
.. | ||
active_record | ||
rails/generators | ||
active_record.rb |