mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:29:52 +01:00
8 lines
212 B
Ruby
8 lines
212 B
Ruby
class ModerationComment < ApplicationRecord
|
|
belongs_to :user
|
|
belongs_to :report
|
|
validates :user_id, presence: true
|
|
validates :report_id, presence: true
|
|
|
|
validates :content, length: { maximum: 160 }
|
|
end
|