Fix #4148: Don't prune votes.

This commit is contained in:
evazion
2019-08-31 20:09:41 -05:00
parent b77eebf136
commit 80d881bfcb
3 changed files with 0 additions and 10 deletions

View File

@@ -11,10 +11,6 @@ class PostVote < ApplicationRecord
after_create :update_post_on_create
after_destroy :update_post_on_destroy
def self.prune!
where("created_at < ?", 90.days.ago).delete_all
end
def self.positive_user_ids
select_values_sql("select user_id from post_votes where score > 0 group by user_id having count(*) > 100")
end