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

When user is deleted, all comments are deleted too. #175

Open
acesuares opened this issue Jun 10, 2020 · 1 comment
Open

When user is deleted, all comments are deleted too. #175

acesuares opened this issue Jun 10, 2020 · 1 comment

Comments

@acesuares
Copy link

When user is deleted, all comments are deleted too.
But in the case of a 'soft delete', this might not be a good idea.
In case of soft delete, the user does get a :deleted_at

How to prevent this from happening? I checked if I had destroy: :dependent but I don't see it anywhere in my models.

@Dantemss
Copy link
Member

Dantemss commented Mar 3, 2021

Sorry for not seeing this earlier, but acts_as_commontator sets dependent: :destroy and there seems to currently be no way to prevent that.

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

2 participants