class GraduationWorkScore < ApplicationRecord
  # reviewer_role： 1 老师评分  2 交叉评分
  belongs_to :graduation_work
  belongs_to :user
  belongs_to :graduation_task
  has_many :attachments, as: :container, dependent: :destroy

  validates :comment, length: { maximum: 2000, too_long: "不能超过2000个字符" }
end
