Sha256: 801ba82270d1086ccb71edb1e039a0994007ea5d696b794cedf145152bd3e835

Contents?: true

Size: 565 Bytes

Versions: 152

Compression:

Stored size: 565 Bytes

Contents

class CreateWorkflowState < ActiveRecord::Migration
  def up
    unless table_exists?("workflow_states")
      create_table "workflow_states" do |t|
        t.string   "pid"
        t.string   "workflow_state"
        t.datetime "created_at"
        t.datetime "updated_at"
      end

      add_index "workflow_states", ["pid"], name: "index_workflow_states_on_pid", unique: true
      add_index "workflow_states", ["workflow_state"], name: "index_workflow_states_on_workflow_state"
    end
  end

  def down
    raise ActiveRecord::IrreversibleMigration
  end
end

Version data entries

152 entries across 152 versions & 1 rubygems

Version Path
ddr-models-2.11.0 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.10.2 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.10.1 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.10.0 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.10.0.rc2 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.10.0.rc1 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.9.2 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.9.1 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.9.0 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.9.0.rc1 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.8.0 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.8.0.rc1 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.7.6 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.7.5 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.7.4 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.7.3 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.7.2 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.7.1 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.7.0 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.7.0.rc1 db/migrate/20141103192146_create_workflow_state.rb