activity_notification icon indicating copy to clipboard operation
activity_notification copied to clipboard

Q: What is the best way to delete old notifications?

Open netpenthe opened this issue 1 year ago • 0 comments

I would like to expire old notifications.. is the best way to do it to just something like:

ActivityNotification.where("created_at < ?", Time.now-6.months).destroy_all

Is this the right way to do it? Do I need to clean up anything else?

Thanks :)

netpenthe avatar Jan 10 '24 12:01 netpenthe