rails acts_as_paranoid updated_at column on destroy

234 Views Asked by At

Is there a way to update the updated_at column when calling the destroy method using acts_as_paranoid gem?

When I call destroy, the deleted_at column is set but the updated_at column is not.

1

There are 1 best solutions below

0
On

I found out how to do this in general.

In the model I added this line of code:

before_destroy :touch