Class: CreateFormilyableForms
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateFormilyableForms
- Defined in:
- lib/generators/formily/install/templates/create_formilyable_forms.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/generators/formily/install/templates/create_formilyable_forms.rb', line 2 def change create_table :formilyable_forms do |t| t.integer :form_id t.integer :formilyable_id t.string :formilyable_type t. null: false end add_index :formilyable_forms, :form_id add_index :formilyable_forms, :formilyable_id end |