aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-10-28 13:46:06 +0200
committerGitHub <noreply@github.com>2016-10-28 13:46:06 +0200
commit86bf5adaa810ef9d988cc64dbe1b466f0f74e817 (patch)
treedd529bfefb5be514dde084ca59c5f6d95e9d24b4 /activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
parent3f2046f00ab0046f9252a5a7b52f617028bc4e0c (diff)
parent444cf0d6424dcfaef009b9046b23c281791f0e9b (diff)
downloadrails-86bf5adaa810ef9d988cc64dbe1b466f0f74e817.tar.gz
rails-86bf5adaa810ef9d988cc64dbe1b466f0f74e817.tar.bz2
rails-86bf5adaa810ef9d988cc64dbe1b466f0f74e817.zip
Merge pull request #26688 from kamipo/remove_respond_to_indexes
Remove unnecessary `respond_to?(:indexes)` checking
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
index 5d2943e398..151629b02a 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -1199,10 +1199,6 @@ module ActiveRecord
def index_name_for_remove(table_name, options = {})
return options[:name] if can_remove_index_by_name?(options)
- # if the adapter doesn't support the indexes call the best we can do
- # is return the default index name for the options provided
- return index_name(table_name, options) unless respond_to?(:indexes)
-
checks = []
if options.is_a?(Hash)