class CreateWorkflowInstances < ActiveRecord::Migration
  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
    add_index :workflow_instances, :sti_type
  end
end

