[refs #90] forgot dependent destroy

This commit is contained in:
Alexander Machehin 2012-08-08 00:07:26 +06:00
parent 6225410720
commit a7f926bbdf
1 changed files with 1 additions and 1 deletions

View File

@ -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