Class: CreateDynamicModels
- Inherits:
-
Object
- Object
- CreateDynamicModels
- Defined in:
- lib/generators/actasdynamic/install/templates/create_something.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/actasdynamic/install/templates/create_something.rb', line 2 def change create_table :dynamic_models do |t| t.string "source_class" t.bigint "source_record_id" t.bigint "reference_number" t.string "destination_class" t.index ["source_record_id"], name: "index_dynamic_models_on_source_record_id" t. end end |