aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-07-22 15:56:33 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-07-22 15:56:33 +0100
commit7c70e0852c5107629b7ca18751cc0b4479c5d6c4 (patch)
tree97c38feaf47bf2e6a442df45d906e30932d37581
parent11a73eef1d83cfa3bc3c145de483fa81c25d6216 (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.rb2
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