aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-01-31 05:47:41 -0800
committerJon Leighton <j@jonathanleighton.com>2012-01-31 13:51:09 +0000
commit85c724d59e46953c52fb457411597fbab90f3a4a (patch)
tree6eb192cd6a604f3e34274fe6a607354c2b71f60e /activerecord/test/models
parent7beb5a71f39f08c2b41a8f9b39f64e126d72bd79 (diff)
downloadrails-85c724d59e46953c52fb457411597fbab90f3a4a.tar.gz
rails-85c724d59e46953c52fb457411597fbab90f3a4a.tar.bz2
rails-85c724d59e46953c52fb457411597fbab90f3a4a.zip
Merge pull request #4783 from gregolsen/ids_reader_fix
ids_reader method fixed, test added to has_many association (for PostgreSQL)
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/company.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/company.rb b/activerecord/test/models/company.rb
index fe9c465c81..db82f471d2 100644
--- a/activerecord/test/models/company.rb
+++ b/activerecord/test/models/company.rb
@@ -45,6 +45,7 @@ class Firm < Company
has_many :unsorted_clients_with_symbol, :class_name => :Client
has_many :clients_sorted_desc, :class_name => "Client", :order => "id DESC"
has_many :clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :order => "id"
+ has_many :clients_ordered_by_rating, :order => "rating", :class_name => "Client"
has_many :unvalidated_clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :validate => false
has_many :dependent_clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :order => "id", :dependent => :destroy
has_many :exclusively_dependent_clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :order => "id", :dependent => :delete_all