Replies: 1 comment 3 replies
-
Automatic removal of associations is provided by the association_dependencies plugin. The equivalent of Active Record's |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is
remove_all_*
available, which (as far as I can tell) only removes associations, but not associated records. Is there an easy way to remove associated records as well?In ActiveRecord, relevant code would be:
Or as methods:
If not, would it be the best to just do it manually using the
before_destroy
hook?Beta Was this translation helpful? Give feedback.
All reactions