Skip to content

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

@sukumo28

Description

@sukumo28

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions