You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dependent option for has_many creates a callback that is executed on soft-deletion. However, it may make more sense to execute it on hard-deletion, because otherwise the deletion cannot be undone (unless the action is destroy and the relation is also paranoid).
Options:
Move some of these callbacks to the hard-delete stage
Warn about these callbacks (i.e., make people not use them)
The text was updated successfully, but these errors were encountered:
mvz
changed the title
Callbacks due to :dependent options have potentially unintended effect
Callbacks due to :dependent options have potentially unintended effect
Jan 31, 2020
The
dependent
option forhas_many
creates a callback that is executed on soft-deletion. However, it may make more sense to execute it on hard-deletion, because otherwise the deletion cannot be undone (unless the action is destroy and the relation is also paranoid).Options:
The text was updated successfully, but these errors were encountered: