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-3.0.0.beta.17 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.16 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.15 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.14 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.13 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.12 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.11 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.4.7 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.4.6 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.4.5 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.10 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.9 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.8 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.7 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.4.4 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.6 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.4.3 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.4.2 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-3.0.0.beta.4 db/migrate/20141103192146_create_workflow_state.rb
ddr-models-2.4.1 db/migrate/20141103192146_create_workflow_state.rb