add unpublished field to exercise

This commit is contained in:
Karol
2019-10-08 18:32:02 +02:00
parent 64f6f088f5
commit 7b2f61e602
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddUnpublishedToExercise < ActiveRecord::Migration[5.2]
def change
add_column :exercises, :unpublished, :boolean
end
end

View File

@ -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