class ShixunWorkComment < ApplicationRecord
  belongs_to :student_work
  belongs_to :user
  belongs_to :challenge, optional: true
  validates :comment, length: { maximum: 500, too_long: "不能超过500个字符" }
  validates :hidden_comment, length: { maximum: 500, too_long: "不能超过500个字符" }
end
