activity_notification
activity_notification copied to clipboard
Q: What is the best way to delete old notifications?
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 :)