1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/fixtures/citations.yml
Ryuta Kamizono ce40073c9c Lazy checking whether or not values in IN clause are boundable
Since #33844, eager loading/preloading with too many and/or too large
ids won't be broken by pre-checking whether the value is constructable
or not.

But the pre-checking caused the type to be evaluated at relation build
time instead of at the query execution time, that is breaking an
expectation for some apps.

I've made the pre-cheking lazy as much as possible, that is no longer
happend at relation build time.
2018-10-24 11:26:49 +09:00

5 lines
94 B
YAML

<% 65536.times do |i| %>
fixture_no_<%= i %>:
id: <%= i %>
book2_id: <%= i*i %>
<% end %>