method
remove_index
v3.2.8 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::SchemaStatements
remove_index(table_name, options = {})public
Remove the given index from the table.
Remove the index_accounts_on_column in the accounts table.
remove_index :accounts, :column
Remove the index named index_accounts_on_branch_id in the accounts table.
remove_index :accounts, :column => :branch_id
Remove the index named index_accounts_on_branch_id_and_party_id in the accounts table.
remove_index :accounts, :column => [:branch_id, :party_id]
Remove the index named by_branch_party in the accounts table.
remove_index :accounts, :name => :by_branch_party