Method: Sequel::Database#drop_index
- Defined in:
- lib/sequel/database/schema_methods.rb
#drop_index(table, columns) ⇒ Object
Removes an index for the given table and column/s:
DB.drop_index :posts, :title
DB.drop_index :posts, [:author, :title]
See alter_table.
103 104 105 |
# File 'lib/sequel/database/schema_methods.rb', line 103 def drop_index(table, columns) alter_table(table) {drop_index(columns)} end |