diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2017-03-05 09:28:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-05 09:28:47 -0500 |
commit | 45b64bb6a837a6405567c94d2b719e232cd56e86 (patch) | |
tree | f15527ff0369d56f9320a4a1776beb268aef7614 /activerecord/lib/active_record/connection_adapters | |
parent | 6ef074a3b25526bd31fe3415bb39698fa94d4374 (diff) | |
parent | 60440a68b13a5408cd9c492cc2eaed2e68f95bd7 (diff) | |
download | rails-45b64bb6a837a6405567c94d2b719e232cd56e86.tar.gz rails-45b64bb6a837a6405567c94d2b719e232cd56e86.tar.bz2 rails-45b64bb6a837a6405567c94d2b719e232cd56e86.zip |
Merge pull request #28293 from kamipo/remove_useless_migrator_schema_migrations_table_name
Remove useless `Migrator.schema_migrations_table_name`
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index c9dd915e98..cbb93e0ffe 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -996,7 +996,7 @@ module ActiveRecord end def insert_versions_sql(versions) # :nodoc: - sm_table = quote_table_name(ActiveRecord::Migrator.schema_migrations_table_name) + sm_table = quote_table_name(ActiveRecord::SchemaMigration.table_name) if versions.is_a?(Array) sql = "INSERT INTO #{sm_table} (version) VALUES\n" @@ -1025,7 +1025,7 @@ module ActiveRecord def assume_migrated_upto_version(version, migrations_paths) migrations_paths = Array(migrations_paths) version = version.to_i - sm_table = quote_table_name(ActiveRecord::Migrator.schema_migrations_table_name) + sm_table = quote_table_name(ActiveRecord::SchemaMigration.table_name) migrated = select_values("SELECT version FROM #{sm_table}").map(&:to_i) versions = ActiveRecord::Migrator.migration_files(migrations_paths).map do |file| |