From 9a3509084dee858a505d2e7c068c2d3381bfa2c5 Mon Sep 17 00:00:00 2001 From: Henrik Nygren Date: Wed, 28 Feb 2024 12:23:37 +0200 Subject: [PATCH] Disable code review requests by default --- ...20240228101929_disable_code_review_requests_by_default.rb | 5 +++++ db/schema.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20240228101929_disable_code_review_requests_by_default.rb diff --git a/db/migrate/20240228101929_disable_code_review_requests_by_default.rb b/db/migrate/20240228101929_disable_code_review_requests_by_default.rb new file mode 100644 index 000000000..cd14bae64 --- /dev/null +++ b/db/migrate/20240228101929_disable_code_review_requests_by_default.rb @@ -0,0 +1,5 @@ +class DisableCodeReviewRequestsByDefault < ActiveRecord::Migration[6.1] + def change + change_column_default :courses, :code_review_requests_enabled, from: true, to: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 903ae532f..56e2d4d26 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2024_02_26_094608) do +ActiveRecord::Schema.define(version: 2024_02_28_101929) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -178,7 +178,7 @@ t.boolean "hide_submissions", default: false, null: false t.boolean "model_solution_visible_before_completion", default: false, null: false t.float "soft_deadline_point_multiplier", default: 0.75, null: false - t.boolean "code_review_requests_enabled", default: true, null: false + t.boolean "code_review_requests_enabled", default: false, null: false t.integer "grant_model_solution_token_every_nth_completed_exercise" t.integer "initial_coin_stash" t.boolean "large_exercises_consume_more_coins", default: false