lib/active_record/connection_adapters/oracle_enhanced_schema_statements.rb
def remove_index(table_name, options = {}) #:nodoc:
        index_name = index_name(table_name, options)
        unless index_name_exists?(table_name, index_name, true)
          # sometimes options can be String or Array with column names
          options = {} unless options.is_a?(Hash)
          if options.has_key? :name
            options_without_column = options.dup
            options_without_column.delete :column
            index_name_without_column = index_name(table_name, options_without_column)
            return index_name_without_column if index_name_exists?(table_name, index_name_without_column, false)
          end
          raise ArgumentError, "Index name '#{index_name}' on table '#{table_name}' does not exist"
        end
        remove_index!(table_name, index_name)
      end
# Remove the given index from the table.
# Gives warning if index does not exist
Remove the given index from the table.
Gives warning if index does not exist
Remove the given index from the table . Gives warning if index does not exist
def remove_index(table_name, options = {}) 
        index_name = index_name(table_name, options)
        unless index_name_exists?(table_name, index_name, true)
          options = {} unless options.is_a?(Hash)
          if options.has_key? :name
            options_without_column = options.dup
            options_without_column.delete :column
            index_name_without_column = index_name(table_name, options_without_column)
            return index_name_without_column if index_name_exists?(table_name, index_name_without_column, false)
          end
          raise ArgumentError, "Index name '#{index_name}' on table '#{table_name}' does not exist"
        end
        remove_index!(table_name, index_name)
      end
def remove_index ( table_name , options = { } ) index_name = index_name ( table_name , options ) unless index_name_exists? ( table_name , index_name , true ) options = { } unless options . is_a? ( Hash ) if options . has_key? :name options_without_column = options . dup options_without_column . delete :column index_name_without_column = index_name ( table_name , options_without_column ) return index_name_without_column if index_name_exists? ( table_name , index_name_without_column , false ) end raise ArgumentError , "Index name '#{index_name}' on table '#{table_name}' does not exist" end remove_index! ( table_name , index_name ) end
Remove the given index from the table.
Remove the given index from the table .
#:nodoc: # sometimes options can be String or Array with column names
table_name
options