diff options
author | Toshiyuki Kawanishi <toshi.kawanishi@gmail.com> | 2012-09-15 17:39:11 +0900 |
---|---|---|
committer | Toshiyuki Kawanishi <toshi.kawanishi@gmail.com> | 2012-09-16 20:02:23 +0900 |
commit | 761bc751d31c22e2c2fdae2b4cdd435b68b6d783 (patch) | |
tree | 3be6eea9bbeef057a0ab55796e1e693e76af0226 /activerecord/test/models | |
parent | 56c60cab563a1adf778e18c5c8d0935fac26b6b8 (diff) | |
download | rails-761bc751d31c22e2c2fdae2b4cdd435b68b6d783.tar.gz rails-761bc751d31c22e2c2fdae2b4cdd435b68b6d783.tar.bz2 rails-761bc751d31c22e2c2fdae2b4cdd435b68b6d783.zip |
Fix find_in_batches with customized primary_key
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/post.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb index c995f59a15..9858f68c4a 100644 --- a/activerecord/test/models/post.rb +++ b/activerecord/test/models/post.rb @@ -186,3 +186,8 @@ class SpecialPostWithDefaultScope < ActiveRecord::Base self.table_name = 'posts' default_scope { where(:id => [1, 5,6]) } end + +class PostWithTitlePrimaryKey < ActiveRecord::Base + self.table_name = 'posts' + self.primary_key = :title +end |