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