diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-05-07 02:03:25 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-05-07 02:03:25 +0000 |
commit | d59f3a78a423064f53dadd9f55d05b5f7b2b240e (patch) | |
tree | 2d69b9e85362f4b6b73422e5bb17e453a7af9208 /activerecord/test/fixtures/project.rb | |
parent | 50f538b72bbe6657627c9efe55b65d167956d1b7 (diff) | |
download | rails-d59f3a78a423064f53dadd9f55d05b5f7b2b240e.tar.gz rails-d59f3a78a423064f53dadd9f55d05b5f7b2b240e.tar.bz2 rails-d59f3a78a423064f53dadd9f55d05b5f7b2b240e.zip |
uniq preserves order. References [4325].
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/project.rb')
-rw-r--r-- | activerecord/test/fixtures/project.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/project.rb b/activerecord/test/fixtures/project.rb index c1aa4145f9..4d4e0e127a 100644 --- a/activerecord/test/fixtures/project.rb +++ b/activerecord/test/fixtures/project.rb @@ -1,5 +1,6 @@ class Project < ActiveRecord::Base - has_and_belongs_to_many :developers, :uniq => true + has_and_belongs_to_many :developers, :uniq => true, :order => 'developers.name desc, developers.id desc' + has_and_belongs_to_many :non_unique_developers, :order => 'developers.name desc, developers.id desc', :class_name => 'Developer' has_and_belongs_to_many :limited_developers, :class_name => "Developer", :limit => 1 has_and_belongs_to_many :developers_named_david, :class_name => "Developer", :conditions => "name = 'David'", :uniq => true has_and_belongs_to_many :salaried_developers, :class_name => "Developer", :conditions => "salary > 0" |