diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-03-09 08:46:12 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-03-09 08:46:12 +0900 |
commit | 96aa18974adf7321f265eafbdfe74c7c6e007cb0 (patch) | |
tree | c76c1efb0dbe2050333722f6cbf7739e31ac0d6e /activerecord/lib/active_record | |
parent | 4eff8eafc23d21a306ab8b49685b9e38b11d4c26 (diff) | |
download | rails-96aa18974adf7321f265eafbdfe74c7c6e007cb0.tar.gz rails-96aa18974adf7321f265eafbdfe74c7c6e007cb0.tar.bz2 rails-96aa18974adf7321f265eafbdfe74c7c6e007cb0.zip |
Deprecate `Migrator.schema_migrations_table_name`
Since 67fba0cf `SchemaMigration` model was extracted.
Use `SchemaMigration.table_name` instead.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 3eb9171a5f..4e1df1432c 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -1022,6 +1022,11 @@ module ActiveRecord new(:up, migrations(migrations_paths), nil) end + def schema_migrations_table_name + SchemaMigration.table_name + end + deprecate :schema_migrations_table_name + def get_all_versions(connection = Base.connection) if SchemaMigration.table_exists? SchemaMigration.all_versions.map(&:to_i) |