summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-26 17:11:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-26 17:11:44 +0000
commitb4d4b80dcd5327d66a4d9c910fb9022c9dd93c4f (patch)
treeab93f1acfb177e1c5cfbd1e36c8ad6c7e2e2821a /app/models/issue.rb
parent3bfaa20c057f97c25d4f8b68334bd4ff0f499887 (diff)
downloadredmine-b4d4b80dcd5327d66a4d9c910fb9022c9dd93c4f.tar.gz
redmine-b4d4b80dcd5327d66a4d9c910fb9022c9dd93c4f.zip
replaced deprecated ":dependent => true" statements
git-svn-id: http://redmine.rubyforge.org/svn/trunk@123 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index f00eb7a9c..6f77bef30 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -26,11 +26,10 @@ class Issue < ActiveRecord::Base
belongs_to :priority, :class_name => 'Enumeration', :foreign_key => 'priority_id'
belongs_to :category, :class_name => 'IssueCategory', :foreign_key => 'category_id'
- #has_many :histories, :class_name => 'IssueHistory', :dependent => true, :order => "issue_histories.created_on DESC", :include => :status
- has_many :journals, :as => :journalized, :dependent => true
- has_many :attachments, :as => :container, :dependent => true
+ has_many :journals, :as => :journalized, :dependent => :destroy
+ has_many :attachments, :as => :container, :dependent => :destroy
- has_many :custom_values, :dependent => true, :as => :customized
+ has_many :custom_values, :dependent => :delete_all, :as => :customized
has_many :custom_fields, :through => :custom_values
validates_presence_of :subject, :description, :priority, :tracker, :author, :status