2015-05-19 10:36:30 +08:00
|
|
|
#学生提交作品表
|
|
|
|
class StudentWork < ActiveRecord::Base
|
|
|
|
attr_accessible :name, :description, :homework_common_id, :user_id, :final_score, :teacher_score, :student_score, :teaching_asistant_score
|
|
|
|
|
|
|
|
belongs_to :homework_common
|
|
|
|
belongs_to :user
|
2015-05-19 10:56:41 +08:00
|
|
|
has_many :student_works_evaluation_distributions, :dependent => :destroy
|
2015-05-19 10:36:30 +08:00
|
|
|
end
|