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
This method will always remove record from the database ignoring the :dependent option.
ActsAsParanoid keeps the records but should soft-delete it instead.
The text was updated successfully, but these errors were encountered:
mvz
changed the title
Behavior of destroy on associations is not compatible with default ActiveRecord
Behavior of destroy on associations does not match default ActiveRecord
Apr 25, 2021
In default ActiveRecord, calling
destroy
on a many-to-many association always destroys both the join row and the joined record:In all cases the documentation says:
ActsAsParanoid keeps the records but should soft-delete it instead.
The text was updated successfully, but these errors were encountered: