How to purge data older than 3months?

You’d have to restore the whole database, so what’s the point? And if you deleted a bunch of data then it wouldn’t be useful as a test of what’s on production?

But there is a PostDestroyer and you could do a User.where(something).destroy_all, but that doesn’t seem very useful

What do you think you’re going to test on the staging site if it isn’t the data from production? Maybe you just want to generate some bogus data? I think there is a rake task for that.