remove_index(options = {}) public

Removes the given index from the table.

Examples
Remove the suppliers_name_index in the suppliers table
t.remove_index :name
Remove the index named accounts_branch_id_index in the accounts table
t.remove_index :column => :branch_id
Remove the index named accounts_branch_id_party_id_index in the accounts table
t.remove_index :column => [:branch_id, :party_id]
Remove the index named by_branch_party in the accounts table
t.remove_index :name => :by_branch_party
Show source
Register or log in to add new notes.