Class: CreateMageSteps

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/mage/active_record_migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
# File 'lib/generators/mage/active_record_migration.rb', line 2

def change
  create_table :mage_steps do |t|
    t.belongs_to(:object, polymorphic: true)
    t.string :step

    t.timestamps null: false
  end
end