1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

document the default for dependent activerecord option

This commit is contained in:
Michael Grosser 2019-03-06 15:38:12 -08:00
parent 98754de141
commit 7e65febd24
No known key found for this signature in database
GPG key ID: B19DB1587D698ED7

View file

@ -1289,6 +1289,7 @@ module ActiveRecord
# similar callbacks may affect the <tt>:dependent</tt> behavior, and the
# <tt>:dependent</tt> behavior may affect other callbacks.
#
# * <tt>nil</tt> do nothing (default).
# * <tt>:destroy</tt> causes all the associated objects to also be destroyed.
# * <tt>:delete_all</tt> causes all the associated objects to be deleted directly from the database (so callbacks will not be executed).
# * <tt>:nullify</tt> causes the foreign keys to be set to +NULL+. Polymorphic type will also be nullified