diff options
author | pavel <pavel.rosicky@easy.cz> | 2017-10-17 23:26:11 +0200 |
---|---|---|
committer | pavel <pavel.rosicky@easy.cz> | 2017-10-18 00:55:44 +0200 |
commit | 3218d5f8407e902177fbffcea40cf7d5eb4d89a9 (patch) | |
tree | e3703f984a539e1d979b08251e4626e31b89bf4f /activerecord/test | |
parent | 262dc918491ad3da770ffec1428582d1a2625452 (diff) | |
download | rails-3218d5f8407e902177fbffcea40cf7d5eb4d89a9.tar.gz rails-3218d5f8407e902177fbffcea40cf7d5eb4d89a9.tar.bz2 rails-3218d5f8407e902177fbffcea40cf7d5eb4d89a9.zip |
compatibility - use int instead of bigint
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration/compatibility_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 |