diff options
author | miloops <miloops@gmail.com> | 2008-09-11 19:14:06 -0300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-09-12 12:27:03 +0200 |
commit | 646b5bfa61f8e803d98bd1557c53ea961cc6b16d (patch) | |
tree | a193f7d5b50ab36f0860daf834775a956a8940e0 /activerecord/test/models/company.rb | |
parent | a37c5ae961366e3d693991b51d0830d40ae37e08 (diff) | |
download | rails-646b5bfa61f8e803d98bd1557c53ea961cc6b16d.tar.gz rails-646b5bfa61f8e803d98bd1557c53ea961cc6b16d.tar.bz2 rails-646b5bfa61f8e803d98bd1557c53ea961cc6b16d.zip |
Use select and change test so new tests can work on postgres.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activerecord/test/models/company.rb')
-rw-r--r-- | activerecord/test/models/company.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/models/company.rb b/activerecord/test/models/company.rb index 1abf3f3918..0eb8ae0a15 100644 --- a/activerecord/test/models/company.rb +++ b/activerecord/test/models/company.rb @@ -55,8 +55,8 @@ class Firm < Company has_many :readonly_clients, :class_name => 'Client', :readonly => true has_many :clients_using_primary_key, :class_name => 'Client', :primary_key => 'name', :foreign_key => 'firm_name' - has_many :clients_grouped_by_firm_id, :class_name => "Client", :group => "firm_id" - has_many :clients_grouped_by_name, :class_name => "Client", :group => "name" + has_many :clients_grouped_by_firm_id, :class_name => "Client", :group => "firm_id", :select => "firm_id" + has_many :clients_grouped_by_name, :class_name => "Client", :group => "name", :select => "name" has_one :account, :foreign_key => "firm_id", :dependent => :destroy, :validate => true has_one :unvalidated_account, :foreign_key => "firm_id", :class_name => 'Account', :validate => false |