Add user (ID and type) to proxy exercise

This is required for the existing policies to work
This commit is contained in:
Sebastian Serth
2018-11-22 19:16:03 +01:00
parent e08e02f1c8
commit 59257d17f2
8 changed files with 39 additions and 4 deletions

View File

@ -263,6 +263,10 @@ ActiveRecord::Schema.define(version: 2018_11_29_093207) do
t.string "token"
t.datetime "created_at"
t.datetime "updated_at"
t.string "user_type"
t.bigint "user_id"
t.boolean "public"
t.index ["user_type", "user_id"], name: "index_proxy_exercises_on_user_type_and_user_id"
end
create_table "remote_evaluation_mappings", force: :cascade do |t|