Sha256: 2286fc6ef315baf702eee6edf82befa1251ae311c32b9b22123e6ca488610312

Contents?: true

Size: 829 Bytes

Versions: 153

Compression:

Stored size: 829 Bytes

Contents

class CreateEvents < ActiveRecord::Migration
  def up
    unless table_exists?("events")
      create_table "events" do |t|
        t.datetime "event_date_time"
        t.integer  "user_id"
        t.string   "type"
        t.string   "pid"
        t.string   "software"
        t.text     "comment"
        t.datetime "created_at"
        t.datetime "updated_at"
        t.string   "summary"
        t.string   "outcome"
        t.text     "detail"
      end

      add_index "events", ["event_date_time"], name: "index_events_on_event_date_time"
      add_index "events", ["outcome"], name: "index_events_on_outcome"
      add_index "events", ["pid"], name: "index_events_on_pid"
      add_index "events", ["type"], name: "index_events_on_type"
    end
  end

  def down
    raise ActiveRecord::IrreversibleMigration
  end
end

Version data entries

153 entries across 153 versions & 1 rubygems

Version Path
ddr-models-2.1.1 db/migrate/20141021233359_create_events.rb
ddr-models-2.1.0 db/migrate/20141021233359_create_events.rb
ddr-models-2.1.0.rc2 db/migrate/20141021233359_create_events.rb
ddr-models-2.1.0.rc1 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.1 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0.rc6 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0.rc5 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0.rc4 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0.rc3 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0.rc2 db/migrate/20141021233359_create_events.rb
ddr-models-1.17.1 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0.rc1 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0.pre.5 db/migrate/20141021233359_create_events.rb
ddr-models-1.17.0 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0.pre.4 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0.pre.3 db/migrate/20141021233359_create_events.rb
ddr-models-1.16.2 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0.pre.2 db/migrate/20141021233359_create_events.rb
ddr-models-2.0.0.pre.1 db/migrate/20141021233359_create_events.rb