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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Adds a new index to the table. <tt>column_name</tt> can be a single Symbol, or an Array of Symbols. See SchemaStatements#add_index
- !ruby/struct:SM::Flow::H 
  level: 5
  text: Examples
- !ruby/struct:SM::Flow::H 
  level: 6
  text: Creating a simple index
- !ruby/struct:SM::Flow::VERB 
  body: " t.index(:name)\n"
- !ruby/struct:SM::Flow::H 
  level: 6
  text: Creating a unique index
- !ruby/struct:SM::Flow::VERB 
  body: " t.index([:branch_id, :party_id], :unique =&gt; true)\n"
- !ruby/struct:SM::Flow::H 
  level: 6
  text: Creating a named index
- !ruby/struct:SM::Flow::VERB 
  body: " t.index([:branch_id, :party_id], :unique =&gt; true, :name =&gt; 'by_branch_party')\n"
full_name: ActiveRecord::ConnectionAdapters::Table#index
is_singleton: false
name: index
params: (column_name, options = {})
visibility: public
