|
|
|
@ -51,6 +51,9 @@ class Project < ActiveRecord::Base
|
|
|
|
|
has_one :repository, :conditions => ["is_default = ?", true]
|
|
|
|
|
has_many :repositories, :dependent => :destroy
|
|
|
|
|
has_many :changesets, :through => :repository
|
|
|
|
|
#added by xianbo for delete biding_project
|
|
|
|
|
has_many :biding_projects, :dependent => :destroy
|
|
|
|
|
#ended by xianbo
|
|
|
|
|
# added by fq
|
|
|
|
|
has_many :journals_for_messages, :as => :jour, :dependent => :destroy
|
|
|
|
|
has_many :homework_for_courses, :dependent => :destroy
|
|
|
|
|