remove anti voters, extend post vote lifetime to 90 days, add minimum score threshold for super voters

This commit is contained in:
r888888888
2016-09-23 11:03:09 -07:00
parent c8c99e9b9c
commit 09ec2dfc08
5 changed files with 7 additions and 39 deletions

View File

@@ -9,7 +9,7 @@ class PostVote < ActiveRecord::Base
after_destroy :update_post_on_destroy
def self.prune!
where("created_at < ?", 30.days.ago).delete_all
where("created_at < ?", 90.days.ago).delete_all
end
def self.positive_user_ids