Add event model

This commit is contained in:
Maximilian Grundke
2018-08-14 16:59:58 +02:00
parent 81f1e08cc6
commit d6c64f5b91
3 changed files with 33 additions and 1 deletions

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20180703125302) do
ActiveRecord::Schema.define(version: 20180814145059) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -95,6 +95,21 @@ ActiveRecord::Schema.define(version: 20180703125302) do
add_index "errors", ["submission_id"], name: "index_errors_on_submission_id", using: :btree
create_table "events", force: :cascade do |t|
t.string "type"
t.string "data"
t.integer "user_id"
t.string "user_type"
t.integer "exercise_id"
t.integer "file_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
add_index "events", ["exercise_id"], name: "index_events_on_exercise_id", using: :btree
add_index "events", ["file_id"], name: "index_events_on_file_id", using: :btree
add_index "events", ["user_type", "user_id"], name: "index_events_on_user_type_and_user_id", using: :btree
create_table "execution_environments", force: :cascade do |t|
t.string "docker_image", limit: 255
t.string "name", limit: 255