counter cache for issue

This commit is contained in:
yanxd 2014-03-25 09:27:43 +08:00
parent 6ba25556b7
commit ce4f49b635
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class Issue < ActiveRecord::Base
include Redmine::SafeAttributes
include Redmine::Utils::DateCalculation
belongs_to :project
belongs_to :project, :counter_cache => true
belongs_to :tracker
belongs_to :status, :class_name => 'IssueStatus', :foreign_key => 'status_id'
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'