-
Notifications
You must be signed in to change notification settings - Fork 529
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
Doesn't soft delete ActionText #497
Comments
Seeing the same issue with ActiveStorage after upgrading to Rails 6. Come to think about it, it probably is the right behavior, and for some reason up until Rails 6, deleting the model with attached storage just didn't trigger dependent destroy for some reason. |
I added an initializer to patch
This is a crude workaround and affects all rich-text attributes. Nevertheless, it did the job for me. |
Hi -
I've got a Post model with using ActionText (
has_rich_text :body
) and I addedacts_as_paranoid
to it for soft deletes. It works fine on the Post model itself, but the rich text field is automatically deleted regardless. Here's the server log as I deleted a post:You can see the update of the post model deleted_at column, but there's also the SQL for deleting from the ActionText tables.
Thanks!
The text was updated successfully, but these errors were encountered: