Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove deprecated method supports_migrations?
  • Loading branch information
rafaelfranca committed Oct 23, 2017
1 parent c9660b5 commit 9438c14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 4 additions & 0 deletions activerecord/CHANGELOG.md
@@ -1,3 +1,7 @@
* 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*
Expand Down
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions activerecord/test/cases/migration_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 9438c14

Please sign in to comment.