remove_index

remove_index(table_name, options = {})
Instance Public methods

Removes the given index from the table.

Removes the index_accounts_on_column in the accounts table.

1
remove_index :accounts, :column

Removes the index named index_accounts_on_branch_id in the accounts table.

1
remove_index :accounts, column: :branch_id

Removes the index named index_accounts_on_branch_id_and_party_id in the accounts table.

1
remove_index :accounts, column: [:branch_id, :party_id]

Removes the index named by_branch_party in the accounts table.

1
remove_index :accounts, name: :by_branch_party
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.