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

@@ -10,10 +10,6 @@ class CommentVote < ApplicationRecord
validate :validate_comment_can_be_down_voted
validates_inclusion_of :score, :in => [-1, 1], :message => "must be 1 or -1"
def self.prune!
where("created_at < ?", 14.days.ago).delete_all
end
def self.search(params)
q = where("true")
return q if params.blank?