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

Add an option to update the timestamp when a record is logically deleted #349

Open
sukumo28 opened this issue Oct 7, 2024 · 0 comments
Open

Comments

@sukumo28
Copy link

sukumo28 commented Oct 7, 2024

Hi
Currently, when using acts_as_paranoid to logically delete records, the timestamps (such as the updated_at column) are not updated.
From the source code, it appears that update_all is being used, hence the timestamps are not updated.
I would like to request the addition of an option to update the timestamps.
I understand that changing the column type to time will work, but it would be nice to have such an option if I want to use this gem without changing the database scheme specification.
Thank you.

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