diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-09-13 21:30:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-13 21:30:19 +0900 |
commit | 823f9e0a89707561b54196bf4aabe20c5edb88c1 (patch) | |
tree | 82b66bc3d46f5554f10e13e0a2bf598438885eb1 /activerecord/test/models/citation.rb | |
parent | 7db3a6e89a05855d6f55864e15ee69986708c1dc (diff) | |
parent | a50eacb03cf3df1d1cbc227ea0115901e0327f1c (diff) | |
download | rails-823f9e0a89707561b54196bf4aabe20c5edb88c1.tar.gz rails-823f9e0a89707561b54196bf4aabe20c5edb88c1.tar.bz2 rails-823f9e0a89707561b54196bf4aabe20c5edb88c1.zip |
Merge pull request #33844 from kamipo/too_many_eager_load_ids
Eager loading/preloading should be worked regardless of large number of records
Diffstat (limited to 'activerecord/test/models/citation.rb')
-rw-r--r-- | activerecord/test/models/citation.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/citation.rb b/activerecord/test/models/citation.rb index 3d786f27eb..cee3d18173 100644 --- a/activerecord/test/models/citation.rb +++ b/activerecord/test/models/citation.rb @@ -2,4 +2,5 @@ class Citation < ActiveRecord::Base belongs_to :reference_of, class_name: "Book", foreign_key: :book2_id + has_many :citations end |