Class: CreateInteractions
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateInteractions
- Defined in:
- lib/generators/templates/create_interactions.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/templates/create_interactions.rb', line 2 def change create_table :interactions do |t| t.integer "interactable_id" t.string "interactable_type" t.string "key" t.string "value" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.boolean "current", default: true end end |