retrospring/app/models/moderation_comment.rb

9 lines
212 B
Ruby
Raw Normal View History

2020-04-19 00:59:18 +02:00
class ModerationComment < ApplicationRecord
2014-12-27 14:35:09 +01:00
belongs_to :user
belongs_to :report
validates :user_id, presence: true
validates :report_id, presence: true
validates :content, length: { maximum: 160 }
end