lib/active_record/connection_adapters/percona_adapter.rb
def remove_index(table_name, column_name = nil, **options)
        if ActiveRecord::VERSION::STRING >= '6.1'
          return if options[:if_exists] && !index_exists?(table_name, column_name, **options)
          index_name = index_name_for_remove(table_name, column_name, options)
        else
          index_name = index_name_for_remove(table_name, options)
        end

        execute "ALTER TABLE #{quote_table_name(table_name)} DROP INDEX #{quote_column_name(index_name)}"
      end
# Remove the given index from the table.
#
# @param table_name [String, Symbol]
# @param options [Hash] optional
Remove the given index from the table.
Remove the given index from the table .
def remove_index(table_name, column_name = nil, **options)
        if ActiveRecord::VERSION::STRING >= '6.1'
          return if options[:if_exists] && !index_exists?(table_name, column_name, **options)
          index_name = index_name_for_remove(table_name, column_name, options)
        else
          index_name = index_name_for_remove(table_name, options)
        end
        execute "ALTER TABLE #{quote_table_name(table_name)} DROP INDEX #{quote_column_name(index_name)}"
      end
def remove_index ( table_name , column_name = nil , ** options ) if ActiveRecord :: VERSION :: STRING >= '6.1' return if options [ :if_exists ] && ! index_exists? ( table_name , column_name , ** options ) index_name = index_name_for_remove ( table_name , column_name , options ) else index_name = index_name_for_remove ( table_name , options ) end execute "ALTER TABLE #{quote_table_name(table_name)} DROP INDEX #{quote_column_name(index_name)}" end
Remove the given index from the table.
Remove the given index from the table .
table_name
column_name
options
None
None