Fix #4148: Don't prune votes.
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user