Method: Sequel::Schema::AlterTableGenerator#add_index
- Defined in:
- lib/sequel_core/schema/generator.rb
#add_index(columns, opts = {}) ⇒ Object
Add an index on the given columns to the DDL for the table. See Generator#index for available options.
190 191 192 |
# File 'lib/sequel_core/schema/generator.rb', line 190 def add_index(columns, opts = {}) @operations << {:op => :add_index, :columns => Array(columns)}.merge(opts) end |