instance method
remove_index
Ruby on Rails 6.1.7.10
Since v2.2.3Signature
remove_index(column_name = nil, **options)
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)
Parameters
-
column_nameopt = nil -
optionskeyrest
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 710
def remove_index(column_name = nil, **options)
@base.remove_index(name, column_name, **options)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb line 710
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::Table