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

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

Open
netpenthe opened this issue Jan 10, 2024 · 0 comments
Open

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

netpenthe opened this issue Jan 10, 2024 · 0 comments

Comments

@netpenthe
Copy link

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 :)

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