class StudentWorksScore < ActiveRecord::Base
  #reviewer_role: 1:教师评分;2:教辅评分;3:学生匿评
  attr_accessible :student_work_id, :user_id, :score, :comment, :reviewer_role

  belongs_to :user
  belongs_to :student_work
  has_many :journals_for_messages, :as => :jour, :dependent => :destroy

  acts_as_attachable
end
