aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapter_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-12-12 07:42:46 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-02-07 14:21:18 +0900
commit14db455156cf822f1af738f24528200ae19efc1c (patch)
treeb09bd7c9f81bee4938c116cdc7b2baa83948fb2f /activerecord/test/cases/adapter_test.rb
parent968e66b5df92e5ae88c033dc552e17b4c736874b (diff)
downloadrails-14db455156cf822f1af738f24528200ae19efc1c.tar.gz
rails-14db455156cf822f1af738f24528200ae19efc1c.tar.bz2
rails-14db455156cf822f1af738f24528200ae19efc1c.zip
`primary_key` and `references` columns should be identical type
Follow up to #26266. The default type of `primary_key` and `references` were changed to `bigint` since #26266. But legacy migration and sqlite3 adapter should keep its previous behavior.
Diffstat (limited to 'activerecord/test/cases/adapter_test.rb')
-rw-r--r--activerecord/test/cases/adapter_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapter_test.rb b/activerecord/test/cases/adapter_test.rb
index a2b7d53205..0c9d1dff9d 100644
--- a/activerecord/test/cases/adapter_test.rb
+++ b/activerecord/test/cases/adapter_test.rb
@@ -194,7 +194,7 @@ module ActiveRecord
def test_numeric_value_out_of_ranges_are_translated_to_specific_exception
error = assert_raises(ActiveRecord::RangeError) do
- Book.connection.create("INSERT INTO books(author_id) VALUES (2147483648)")
+ Book.connection.create("INSERT INTO books(author_id) VALUES (9223372036854775808)")
end
assert_not_nil error.cause