1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix CI failure caused by #25227 and #25280 were merged at the same time

This commit is contained in:
Ryuta Kamizono 2016-12-10 21:40:20 +09:00
parent 753da21322
commit 3f7cd2c571
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ module ActiveRecord
sc.execute(binds, klass, conn) do |record|
set_inverse_instance record
end.first
rescue RangeError
rescue ::RangeError
nil
end

View file

@ -1079,7 +1079,7 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase
end
comment = model.new
comment.post_id = 10_000_000_000
comment.post_id = 9223372036854775808 # out of range in the bigint
assert_nil comment.post
assert_not comment.valid?