summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-31 17:54:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-31 17:54:46 +0000
commit10ebed3b97b8990a721e666dccbb607d78dc38be (patch)
treea02869d8d3d23d287f6e2519305d08a56200f652
parent7cab59d220a15189165fc00e069297e5f6bbaf9e (diff)
downloadredmine-10ebed3b97b8990a721e666dccbb607d78dc38be.tar.gz
redmine-10ebed3b97b8990a721e666dccbb607d78dc38be.zip
Removes default order on Project#versions association.
git-svn-id: http://svn.redmine.org/redmine/trunk@16319 e93f8b46-1217-0410-a6f0-8f06a7374b81
-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 a09ef781b..967c82cb5 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -37,7 +37,7 @@ class Project < ActiveRecord::Base
has_and_belongs_to_many :trackers, lambda {order(:position)}
has_many :issues, :dependent => :destroy
has_many :issue_changes, :through => :issues, :source => :journals
- has_many :versions, lambda {order("#{Version.table_name}.effective_date DESC, #{Version.table_name}.name DESC")}, :dependent => :destroy
+ has_many :versions, :dependent => :destroy
belongs_to :default_version, :class_name => 'Version'
has_many :time_entries, :dependent => :destroy
has_many :queries, :class_name => 'IssueQuery', :dependent => :delete_all