Add option to suppress feedback messages

This is used to dynamically exclude some test results from being shown to users, but still allows them to run in the background (e.g., for research).
This commit is contained in:
Sebastian Serth
2023-07-27 10:38:49 +02:00
parent 5faf5be033
commit db56a690c7
9 changed files with 20 additions and 35 deletions

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddHiddenFeedbackToFiles < ActiveRecord::Migration[7.0]
def change
add_column :files, :hidden_feedback, :boolean, default: false, null: false
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_03_20_220012) do
ActiveRecord::Schema[7.0].define(version: 2023_07_27_080619) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_trgm"
enable_extension "pgcrypto"
@ -284,6 +284,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_20_220012) do
t.float "weight"
t.string "path"
t.integer "file_template_id"
t.boolean "hidden_feedback", default: false, null: false
t.index ["context_id", "context_type"], name: "index_files_on_context_id_and_context_type"
end