add unpublished field to exercise
This commit is contained in:
5
db/migrate/20191008163045_add_unpublished_to_exercise.rb
Normal file
5
db/migrate/20191008163045_add_unpublished_to_exercise.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class AddUnpublishedToExercise < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
add_column :exercises, :unpublished, :boolean
|
||||||
|
end
|
||||||
|
end
|
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
@ -155,6 +155,7 @@ ActiveRecord::Schema.define(version: 2019_09_05_152630) do
|
|||||||
t.integer "expected_difficulty", default: 1
|
t.integer "expected_difficulty", default: 1
|
||||||
t.uuid "uuid"
|
t.uuid "uuid"
|
||||||
t.string "import_checksum"
|
t.string "import_checksum"
|
||||||
|
t.boolean "unpublished"
|
||||||
t.index ["id"], name: "index_exercises_on_id"
|
t.index ["id"], name: "index_exercises_on_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user