diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-22 15:56:33 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2011-07-26 16:25:08 +0100 |
commit | b5d35d42219aa70b222e686dde29f2e78265d59d (patch) | |
tree | 9d460c9820e45c5635ae15db131e8170ff0bad96 | |
parent | df903ea266bb3e1a0b08c5fbb6fab8714dcbaf87 (diff) |
Drop post_redirects older than 2 months. The 6 month limit meant we had far too much redundant data that we were needlessly backing up.
-rw-r--r-- | app/models/post_redirect.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/post_redirect.rb b/app/models/post_redirect.rb index 1ea3f1543..b111d019d 100644 --- a/app/models/post_redirect.rb +++ b/app/models/post_redirect.rb @@ -88,7 +88,7 @@ class PostRedirect < ActiveRecord::Base # Called from cron job delete-old-things def self.delete_old_post_redirects - PostRedirect.delete_all "updated_at < (now() - interval '6 months')" + PostRedirect.delete_all "updated_at < (now() - interval '2 months')" end end |