summaryrefslogtreecommitdiffstats
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-10 23:47:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-10 23:47:15 +0000
commit261292445fb784f8c7cc35d412f318d7d9d91249 (patch)
treef5284310860aef8bfc6020add6db2cfa79aff376 /app/models/project.rb
parent08e2f2bf96557bc51ad737af7263569dfb613dbf (diff)
downloadredmine-261292445fb784f8c7cc35d412f318d7d9d91249.tar.gz
redmine-261292445fb784f8c7cc35d412f318d7d9d91249.zip
Set inverse_of on project boards association.
git-svn-id: http://svn.redmine.org/redmine/trunk@16659 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 1e187da1f..8afc686c7 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -45,7 +45,7 @@ class Project < ActiveRecord::Base
has_many :documents, :dependent => :destroy
has_many :news, lambda {includes(:author)}, :dependent => :destroy
has_many :issue_categories, lambda {order(:name)}, :dependent => :delete_all
- has_many :boards, lambda {order(:position)}, :dependent => :destroy
+ has_many :boards, lambda {order(:position)}, :inverse_of => :project, :dependent => :destroy
has_one :repository, lambda {where(:is_default => true)}
has_many :repositories, :dependent => :destroy
has_many :changesets, :through => :repository