Remove deprecated method `supports_migrations?`

上级 c9660b57
* Remove deprecated method `supports_migrations?`.
*Rafael Mendonça França*
* Remove deprecated methods `initialize_schema_migrations_table` and `initialize_internal_metadata_table`.
*Rafael Mendonça França*
......
......@@ -196,11 +196,6 @@ def adapter_name
self.class::ADAPTER_NAME
end
def supports_migrations? # :nodoc:
true
end
deprecate :supports_migrations?
def supports_primary_key? # :nodoc:
true
end
......
......@@ -1107,10 +1107,6 @@ def test_unknown_migration_version_should_raise_an_argument_error
assert_raise(ArgumentError) { ActiveRecord::Migration[1.0] }
end
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册