aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/mysql
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-09-15 13:51:54 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-10-23 12:50:47 -0400
commitd6b779ecebe57f6629352c34bfd6c442ac8fba0e (patch)
tree16d6ea38fde5b858a63c88273da2c15e54962e11 /activerecord/lib/active_record/connection_adapters/mysql
parent7df6e3f3cbdea9a0460ddbab445c81fbb1cfd012 (diff)
downloadrails-d6b779ecebe57f6629352c34bfd6c442ac8fba0e.tar.gz
rails-d6b779ecebe57f6629352c34bfd6c442ac8fba0e.tar.bz2
rails-d6b779ecebe57f6629352c34bfd6c442ac8fba0e.zip
Remove deprecated argument `name` from `#indexes`
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/mysql')
-rw-r--r--activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb
index 759493e3bd..a15c7d1787 100644
--- a/activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb
@@ -5,13 +5,7 @@ module ActiveRecord
module MySQL
module SchemaStatements # :nodoc:
# Returns an array of indexes for the given table.
- def indexes(table_name, name = nil)
- if name
- ActiveSupport::Deprecation.warn(<<-MSG.squish)
- Passing name to #indexes is deprecated without replacement.
- MSG
- end
-
+ def indexes(table_name)
indexes = []
current_index = nil
execute_and_free("SHOW KEYS FROM #{quote_table_name(table_name)}", "SCHEMA") do |result|