--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Adds an index to a table for the given columns:"
- !ruby/struct:SM::Flow::VERB 
  body: "  DB.add_index :posts, :title\n  DB.add_index :posts, [:author, :title], :unique =&gt; true\n"
- !ruby/struct:SM::Flow::P 
  body: See alter_table.
full_name: Sequel::Database#add_index
is_singleton: false
name: add_index
params: (table, *args)
visibility: public
