Permalink
Browse files

Remove deprecated method `ActiveRecord::Migrator.schema_migrations_ta…

…ble_name`
  • Loading branch information...
rafaelfranca committed Sep 15, 2017
1 parent c56ff22 commit 7df6e3f3cbdea9a0460ddbab445c81fbb1cfd012
@@ -1,3 +1,7 @@
* Remove deprecated method `ActiveRecord::Migrator.schema_migrations_table_name`.
*Rafael Mendonça França*
* Remove deprecated method `supports_primary_key?`.
*Rafael Mendonça França*
@@ -1026,11 +1026,6 @@ def open(migrations_paths)
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)
@@ -1106,8 +1106,4 @@ def test_check_pending_with_stdlib_logger
def test_unknown_migration_version_should_raise_an_argument_error
assert_raise(ArgumentError) { ActiveRecord::Migration[1.0] }
end
def test_deprecate_schema_migrations_table_name
assert_deprecated { ActiveRecord::Migrator.schema_migrations_table_name }
end
end

0 comments on commit 7df6e3f

Please sign in to comment.