Retrospring/app/models/moderation_comment.rb

9 lines
212 B
Ruby
Raw Normal View History

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