Method: MotionRecord::Schema::TableDefinition#index

Defined in:
lib/motion_record/schema/table_definition.rb

#index(columns, options = {}) ⇒ Object



35
36
37
# File 'lib/motion_record/schema/table_definition.rb', line 35

def index(columns, options={})
  @index_definitions << IndexDefinition.new(@name, columns, options)
end