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
We are using foreign keys with "ON DELETE CASCADE" to delete child records when parents are deleted, instead of dependent: :destroy, for performance reasons. The docs say "This will only work on associations that are dependent destroy. It should be trival to change that or make it optional." Could you provide more details if there is a suggested workaround for archiving children when a parent is archived? Also, would it be possible to auto-archive children with a dependent: :delete_all relationship in addition to dependent: :destroy?
The text was updated successfully, but these errors were encountered:
We are using foreign keys with "ON DELETE CASCADE" to delete child records when parents are deleted, instead of
dependent: :destroy
, for performance reasons. The docs say "This will only work on associations that are dependent destroy. It should be trival to change that or make it optional." Could you provide more details if there is a suggested workaround for archiving children when a parent is archived? Also, would it be possible to auto-archive children with adependent: :delete_all
relationship in addition todependent: :destroy
?The text was updated successfully, but these errors were encountered: