Set issues' deliverable_id to NULL if their deliverable is deleted
This commit is contained in:
1 parent
642eb1f4ee
commit
6a9ead4ad0
1 file changed
+1
-1
@@ -5,7 +5,7 @@ class Deliverable < ActiveRecord::Base
|
|||||||
validates_presence_of :subject
|
validates_presence_of :subject
|
||||||
|
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
has_many :issues
|
has_many :issues, :dependent => :nullify
|
||||||
|
|
||||||
# Assign all the issues with +version_id+ to this Deliverable
|
# Assign all the issues with +version_id+ to this Deliverable
|
||||||
def assign_issues_by_version(version_id)
|
def assign_issues_by_version(version_id)
|
||||||
|
|||||||
Reference in new issue
Block a user