student_work和student_work_test关系:1对多

This commit is contained in:
sw 2015-07-21 15:39:48 +08:00
parent b13e9f918c
commit cfbd50e474
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class StudentWork < ActiveRecord::Base
has_many :student_works_evaluation_distributions, :dependent => :destroy
has_many :student_works_scores, :dependent => :destroy
belongs_to :project
has_one :student_work_test
has_many :student_work_test
before_destroy :delete_praise