2020-04-18 15:59:18 -07:00
|
|
|
class ModerationComment < ApplicationRecord
|
2014-12-27 05:35:09 -08:00
|
|
|
belongs_to :user
|
|
|
|
belongs_to :report
|
|
|
|
validates :user_id, presence: true
|
|
|
|
validates :report_id, presence: true
|
|
|
|
|
|
|
|
validates :content, length: { maximum: 160 }
|
|
|
|
end
|