11 lines
193 B
Ruby
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
|