class GraduationWorkScore < ApplicationRecord
  belongs_to :graduation_work
  belongs_to :user
  belongs_to :graduation_task
  has_many :attachments, as: :container, dependent: :destroy

  validates :comment, length: { maximum: 2000 }
end