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|