Files
danbooru/app/models/comment_vote.rb
2010-02-15 17:45:09 -05:00

11 lines
193 B
Ruby

class CommentVote < ActiveRecord::Base
class Error < Exception ; end
belongs_to :comment
belongs_to :user
def self.prune!
destroy_all(["created_at < ?", 14.days.ago])
end
end