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:
parent
262dc91849
commit
3218d5f840
2 changed files with 4 additions and 1 deletions
|
@ -171,7 +171,7 @@ module ActiveRecord
|
|||
class << t
|
||||
prepend TableDefinition
|
||||
end
|
||||
t
|
||||
super
|
||||
end
|
||||
|
||||
def index_name_for_remove(table_name, options = {})
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue