aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-06-15 08:03:16 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-06-15 08:04:18 +0900
commit74174d786bab3208c6ed1b412394443c13e6c961 (patch)
tree4c34d6b1972dfac5702e1788cd1e650430b2c039
parentce7ccd8168a8966767a3b4e8fe0e8e5097bf9d31 (diff)
downloadrails-74174d786bab3208c6ed1b412394443c13e6c961.tar.gz
rails-74174d786bab3208c6ed1b412394443c13e6c961.tar.bz2
rails-74174d786bab3208c6ed1b412394443c13e6c961.zip
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
-rw-r--r--activerecord/test/cases/adapters/postgresql/extension_migration_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/extension_migration_test.rb b/activerecord/test/cases/adapters/postgresql/extension_migration_test.rb
index 00ba549c97..16baa8933d 100644
--- a/activerecord/test/cases/adapters/postgresql/extension_migration_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/extension_migration_test.rb
@@ -27,20 +27,20 @@ class PostgresqlExtensionMigrationTest < ActiveRecord::PostgreSQLTestCase
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