From 6c820b75c7826df605367c6f94c296da70eceee8 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Tue, 10 May 2016 17:05:43 +0200 Subject: [PATCH] Add boolean flag to allow file creation --- .../20160510145341_add_allow_file_creation_to_exercises.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20160510145341_add_allow_file_creation_to_exercises.rb diff --git a/db/migrate/20160510145341_add_allow_file_creation_to_exercises.rb b/db/migrate/20160510145341_add_allow_file_creation_to_exercises.rb new file mode 100644 index 00000000..ade1bb26 --- /dev/null +++ b/db/migrate/20160510145341_add_allow_file_creation_to_exercises.rb @@ -0,0 +1,5 @@ +class AddAllowFileCreationToExercises < ActiveRecord::Migration + def change + add_column :exercises, :allow_file_creation, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index eadfd44e..bcf1a675 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # 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 enable_extension "plpgsql" @@ -89,6 +89,7 @@ ActiveRecord::Schema.define(version: 20160426114951) do t.string "token" t.integer "team_id" t.boolean "hide_file_tree" + t.boolean "allow_file_creation" end add_index "exercises", ["execution_environment_id"], name: "test3", using: :btree