From 80edffaa39fa3dcd9d836b55507df3e67360f6ce Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Wed, 15 Nov 2017 13:15:31 +0100 Subject: [PATCH] Add anomaly detection flag to exercise collections --- ...1125_add_anomaly_detection_flag_to_exercise_collection.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20171115121125_add_anomaly_detection_flag_to_exercise_collection.rb diff --git a/db/migrate/20171115121125_add_anomaly_detection_flag_to_exercise_collection.rb b/db/migrate/20171115121125_add_anomaly_detection_flag_to_exercise_collection.rb new file mode 100644 index 00000000..2aad7e28 --- /dev/null +++ b/db/migrate/20171115121125_add_anomaly_detection_flag_to_exercise_collection.rb @@ -0,0 +1,5 @@ +class AddAnomalyDetectionFlagToExerciseCollection < ActiveRecord::Migration + def change + add_column :exercise_collections, :use_anomaly_detection, :boolean, :default => false + end +end diff --git a/db/schema.rb b/db/schema.rb index 465ca604..9acdffb4 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: 20170920145852) do +ActiveRecord::Schema.define(version: 20171115121125) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -104,6 +104,7 @@ ActiveRecord::Schema.define(version: 20170920145852) do t.string "name" t.datetime "created_at" t.datetime "updated_at" + t.boolean "use_anomaly_detection", default: false end create_table "exercise_collections_exercises", id: false, force: :cascade do |t|