Class: CreateFlexiModelCollectionsFields

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/flexi_model/install/templates/create_flexi_model_collections_fields.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
# File 'lib/generators/flexi_model/install/templates/create_flexi_model_collections_fields.rb', line 2

def change
  create_table 'flexi_model_collections_fields', :id => false, :force => true do |t|
    t.integer 'collection_id'
    t.integer 'field_id'
  end

  add_index 'flexi_model_collections_fields', [:collection_id]
  add_index 'flexi_model_collections_fields', [:field_id]
end