[#4690] Clear the issue/deliverable relation when deleting deliverables

This commit is contained in:
Eric Davis
2010-10-27 14:29:50 -07:00
parent 6f1ce637c5
commit 726c7a206f
2 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ class Deliverable < ActiveRecord::Base
has_many :labor_budgets
has_many :overhead_budgets
has_many :fixed_budgets
has_many :issues
has_many :issues, :dependent => :nullify
accepts_nested_attributes_for :labor_budgets
accepts_nested_attributes_for :overhead_budgets