Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Remove deprecated method `supports_primary_key?`
- Loading branch information
|
|
@@ -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" |
|
|