Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behavior of destroy on associations does not match default ActiveRecord #224

Open
mvz opened this issue Apr 25, 2021 · 0 comments
Open

Behavior of destroy on associations does not match default ActiveRecord #224

mvz opened this issue Apr 25, 2021 · 0 comments

Comments

@mvz
Copy link
Contributor

mvz commented 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:

This method will always remove record from the database ignoring the :dependent option.

ActsAsParanoid keeps the records but should soft-delete it instead.

@mvz 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant