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

compatibility - use int instead of bigint

This commit is contained in:
pavel 2017-10-17 23:26:11 +02:00
parent 262dc91849
commit 3218d5f840
2 changed files with 4 additions and 1 deletions

View file

@ -171,7 +171,7 @@ module ActiveRecord
class << t
prepend TableDefinition
end
t
super
end
def index_name_for_remove(table_name, options = {})

View file

@ -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