instance method
remove_index
Ruby on Rails 4.0.13
Since v2.2.3Signature
remove_index(options = {})
Removes the given index from the table.
Remove the index_table_name_on_column in the table_name table
t.remove_index :column
Remove the index named index_table_name_on_branch_id in the table_name table
t.remove_index column: :branch_id
Remove the index named index_table_name_on_branch_id_and_party_id in the table_name table
t.remove_index column: [:branch_id, :party_id]
Remove the index named by_branch_party in the table_name table
t.remove_index name: :by_branch_party
Parameters
-
optionsopt = {}
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 435
def remove_index(options = {})
@base.remove_index(@table_name, options)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb line 435
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::Table