Ensure to reset actually used @connection.schema_migration
's table name
https://buildkite.com/rails/rails/builds/61744#f12cc6cf-7458-4131-917a-9735615f6259/999-1010
This commit is contained in:
parent
ce7ccd8168
commit
74174d786b
@ -27,20 +27,20 @@ def setup
|
||||
|
||||
ActiveRecord::Base.table_name_prefix = "p_"
|
||||
ActiveRecord::Base.table_name_suffix = "_s"
|
||||
ActiveRecord::SchemaMigration.reset_table_name
|
||||
@connection.schema_migration.reset_table_name
|
||||
ActiveRecord::InternalMetadata.reset_table_name
|
||||
|
||||
ActiveRecord::SchemaMigration.delete_all rescue nil
|
||||
@connection.schema_migration.delete_all rescue nil
|
||||
ActiveRecord::Migration.verbose = false
|
||||
end
|
||||
|
||||
def teardown
|
||||
ActiveRecord::SchemaMigration.delete_all rescue nil
|
||||
@connection.schema_migration.delete_all rescue nil
|
||||
ActiveRecord::Migration.verbose = true
|
||||
|
||||
ActiveRecord::Base.table_name_prefix = @old_table_name_prefix
|
||||
ActiveRecord::Base.table_name_suffix = @old_table_name_suffix
|
||||
ActiveRecord::SchemaMigration.reset_table_name
|
||||
@connection.schema_migration.reset_table_name
|
||||
ActiveRecord::InternalMetadata.reset_table_name
|
||||
|
||||
super
|
||||
|
Loading…
Reference in New Issue
Block a user