[refs #90] forgot dependent destroy
This commit is contained in:
parent
6225410720
commit
a7f926bbdf
|
@ -11,7 +11,7 @@ class Issue < ActiveRecord::Base
|
|||
has_many :subscribes, :as => :subscribeable, :dependent => :destroy
|
||||
has_many :labelings, :dependent => :destroy
|
||||
has_many :labels, :through => :labelings, :uniq => true
|
||||
has_one :pull_request
|
||||
has_one :pull_request, :dependent => :destroy
|
||||
|
||||
validates :title, :body, :project_id, :presence => true
|
||||
|
||||
|
|
Loading…
Reference in New Issue