rails task to destroy pages after they have been in the trash for 1 year
I think this is what we want:
Page.where("updated_at < ?", 1.year.ago).where(flow: 3).find_each{|p| p.destroy}
Would be nice to wrap it in a rake task though.
Edited by azul