added artists, comments
This commit is contained in:
8
app/models/comment_vote.rb
Normal file
8
app/models/comment_vote.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class CommentVote < ActiveRecord::Base
|
||||
belongs_to :comment
|
||||
belongs_to :user
|
||||
|
||||
def self.prune!
|
||||
destroy_all(["created_at < ?", 14.days.ago])
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user