Permalink
Browse files

Remove deprecated method `supports_primary_key?`

  • Loading branch information...
rafaelfranca committed Sep 15, 2017
1 parent 9438c14 commit c56ff22fc6e97df4656ddc22909d9bf8b0c2cbb1
@@ -1,3 +1,7 @@
* Remove deprecated method `supports_primary_key?`.
*Rafael Mendonça França*
* Remove deprecated method `supports_migrations?`.
*Rafael Mendonça França*
@@ -196,11 +196,6 @@ def adapter_name
self.class::ADAPTER_NAME
end
def supports_primary_key? # :nodoc:
true
end
deprecate :supports_primary_key?
# Does this adapter support DDL rollbacks in transactions? That is, would
# CREATE TABLE or ALTER TABLE get rolled back by a transaction?
def supports_ddl_transactions?
@@ -156,10 +156,6 @@ def test_instance_destroy_should_quote_pkey
assert_nothing_raised { MixedCaseMonkey.find(1).destroy }
end
def test_deprecate_supports_primary_key
assert_deprecated { ActiveRecord::Base.connection.supports_primary_key? }
end
def test_primary_key_returns_value_if_it_exists
klass = Class.new(ActiveRecord::Base) do
self.table_name = "developers"

0 comments on commit c56ff22

Please sign in to comment.