Add boolean flag to allow file creation

This commit is contained in:
Maximilian Grundke
2016-05-10 17:05:43 +02:00
parent 9fc974af20
commit 6c820b75c7
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddAllowFileCreationToExercises < ActiveRecord::Migration
def change
add_column :exercises, :allow_file_creation, :boolean
end
end

View File

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160426114951) do ActiveRecord::Schema.define(version: 20160510145341) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -89,6 +89,7 @@ ActiveRecord::Schema.define(version: 20160426114951) do
t.string "token" t.string "token"
t.integer "team_id" t.integer "team_id"
t.boolean "hide_file_tree" t.boolean "hide_file_tree"
t.boolean "allow_file_creation"
end end
add_index "exercises", ["execution_environment_id"], name: "test3", using: :btree add_index "exercises", ["execution_environment_id"], name: "test3", using: :btree