|
|
|
@ -56,13 +56,12 @@ class Project < ActiveRecord::Base
|
|
|
|
|
#added by xianbo for delete biding_project
|
|
|
|
|
has_many :biding_projects, :dependent => :destroy
|
|
|
|
|
has_many :contesting_projects, :dependent => :destroy
|
|
|
|
|
has_many :projecting_softapplications, :dependent => :destroy
|
|
|
|
|
has_many :softapplications, :through => :projecting_softapplications
|
|
|
|
|
#ended by xianbo
|
|
|
|
|
# added by fq
|
|
|
|
|
has_many :journals_for_messages, :as => :jour, :dependent => :destroy
|
|
|
|
|
has_many :homework_for_courses, :dependent => :destroy
|
|
|
|
|
has_many :homeworks, :through => :homework_for_courses, :source => :bid, :dependent => :destroy
|
|
|
|
|
#has_many :homework_for_courses, :dependent => :destroy
|
|
|
|
|
#has_many :homeworks, :through => :homework_for_courses, :source => :bid, :dependent => :destroy
|
|
|
|
|
has_many :shares, :dependent => :destroy
|
|
|
|
|
# has_many :students_for_courses, :dependent => :destroy
|
|
|
|
|
has_many :student, :through => :students_for_courses, :source => :user
|
|
|
|
|