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/test | |
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/test')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index 744fa865be..da7875187a 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -1146,4 +1146,8 @@ class CopyMigrationsTest < ActiveRecord::TestCase def test_deprecate_supports_migrations assert_deprecated { ActiveRecord::Base.connection.supports_migrations? } end + + def test_deprecate_schema_migrations_table_name + assert_deprecated { ActiveRecord::Migrator.schema_migrations_table_name } + end end |