Class: CreateWorkflowInstances

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/dunlop/install/workflow/templates/migrations/create_workflow_instances.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/generators/dunlop/install/workflow/templates/migrations/create_workflow_instances.rb', line 2

def change
  create_table :workflow_instances do |t|
    t.string :sti_type
    t.string :state
    t.datetime :archived_at
    t.string :bucket
    t.integer :workflow_instance_batch_id
    t.date :plan_date
    t.timestamps null: false
  end
end