Class: CreateFlexiModelRecords
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateFlexiModelRecords
- Defined in:
- lib/generators/flexi_model/install/templates/create_flexi_model_records.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/flexi_model/install/templates/create_flexi_model_records.rb', line 2 def change create_table 'flexi_model_records', :force => true do |t| t.integer 'collection_id' t.string 'namespace' t.datetime "created_at" t.datetime "updated_at" end add_index 'flexi_model_records', [:namespace, :collection_id] end |