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)` |
||
---|---|---|
.. | ||
associations | ||
attribute_methods | ||
coders | ||
connection_adapters | ||
fixture_set | ||
locale | ||
locking | ||
migration | ||
railties | ||
relation | ||
scoping | ||
serializers | ||
tasks | ||
validations | ||
aggregations.rb | ||
association_relation.rb | ||
associations.rb | ||
attribute_assignment.rb | ||
attribute_methods.rb | ||
autosave_association.rb | ||
base.rb | ||
callbacks.rb | ||
connection_handling.rb | ||
core.rb | ||
counter_cache.rb | ||
dynamic_matchers.rb | ||
errors.rb | ||
explain.rb | ||
explain_registry.rb | ||
explain_subscriber.rb | ||
fixtures.rb | ||
inheritance.rb | ||
integration.rb | ||
log_subscriber.rb | ||
migration.rb | ||
model_schema.rb | ||
nested_attributes.rb | ||
null_relation.rb | ||
persistence.rb | ||
query_cache.rb | ||
querying.rb | ||
railtie.rb | ||
readonly_attributes.rb | ||
reflection.rb | ||
relation.rb | ||
result.rb | ||
runtime_registry.rb | ||
sanitization.rb | ||
schema.rb | ||
schema_dumper.rb | ||
schema_migration.rb | ||
scoping.rb | ||
serialization.rb | ||
statement_cache.rb | ||
store.rb | ||
test_case.rb | ||
timestamp.rb | ||
transactions.rb | ||
translation.rb | ||
validations.rb | ||
version.rb |