class CreateWorkflowSteps < ActiveRecord::Migration
  def change
    create_table :workflow_steps do |t|
      t.string :name
      t.string :product_generated
      t.integer :status
      t.references :institution, index: true
      t.references :area, index: true
      t.references :unit_area, index: true
      t.references :function, index: true
      t.references :individual, index: true
      t.boolean :massive
      t.boolean :type_step

      t.timestamps
    end
  end
end
