删除项目,竞赛表project_id会置空,projecting_softapplications模型不知道干嘛用,此表也不存在

This commit is contained in:
yanxd 2014-07-22 17:40:32 +08:00
parent cccbd941ce
commit 18d096f0d8
2 changed files with 13 additions and 14 deletions

View File

@ -10,7 +10,6 @@ class Softapplication < ActiveRecord::Base
belongs_to :user belongs_to :user
belongs_to :project belongs_to :project
has_many :contests, :through => :contesting_softapplications has_many :contests, :through => :contesting_softapplications
belongs_to :project
def add_jour(user, notes, reference_user_id = 0, options = {}) def add_jour(user, notes, reference_user_id = 0, options = {})
if options.count == 0 if options.count == 0