method
remove_index
v7.1.3.4 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::ColumnMethods::Table
remove_index(column_name = nil, **options)public
Removes the given index from the table.
t.remove_index(:branch_id) t.remove_index(column: [:branch_id, :party_id]) t.remove_index(name: :by_branch_party) t.remove_index(:branch_id, name: :by_branch_party)
See {connection.remove_index}[rdoc-ref:SchemaStatements#remove_index]