From 3218d5f8407e902177fbffcea40cf7d5eb4d89a9 Mon Sep 17 00:00:00 2001 From: pavel Date: Tue, 17 Oct 2017 23:26:11 +0200 Subject: compatibility - use int instead of bigint --- activerecord/test/cases/migration/compatibility_test.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activerecord/test') diff --git a/activerecord/test/cases/migration/compatibility_test.rb b/activerecord/test/cases/migration/compatibility_test.rb index 1ae15eb439..b50d68d6df 100644 --- a/activerecord/test/cases/migration/compatibility_test.rb +++ b/activerecord/test/cases/migration/compatibility_test.rb @@ -71,6 +71,9 @@ module ActiveRecord assert_not connection.index_exists?(:more_testings, :foo_id) assert_not connection.index_exists?(:more_testings, :bar_id) + + legacy_ref = connection.columns(:more_testings).find { |c| c.name == "foo_id" } + assert_not legacy_ref.bigint? ensure connection.drop_table :more_testings rescue nil end -- cgit v1.2.3