diff --git a/db/migrate/20191008163045_add_unpublished_to_exercise.rb b/db/migrate/20191008163045_add_unpublished_to_exercise.rb new file mode 100644 index 00000000..3ba9a996 --- /dev/null +++ b/db/migrate/20191008163045_add_unpublished_to_exercise.rb @@ -0,0 +1,5 @@ +class AddUnpublishedToExercise < ActiveRecord::Migration[5.2] + def change + add_column :exercises, :unpublished, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index 1f82e621..cc7d022a 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: 2019_09_05_152630) do +ActiveRecord::Schema.define(version: 2019_10_08_163045) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -155,6 +155,7 @@ ActiveRecord::Schema.define(version: 2019_09_05_152630) do t.integer "expected_difficulty", default: 1 t.uuid "uuid" t.string "import_checksum" + t.boolean "unpublished" t.index ["id"], name: "index_exercises_on_id" end