diff --git a/db/migrate/20180411152844_add_cloned_from_library_column_to_procedure.rb b/db/migrate/20180411152844_add_cloned_from_library_column_to_procedure.rb new file mode 100644 index 000000000..2534b8060 --- /dev/null +++ b/db/migrate/20180411152844_add_cloned_from_library_column_to_procedure.rb @@ -0,0 +1,5 @@ +class AddClonedFromLibraryColumnToProcedure < ActiveRecord::Migration[5.2] + def change + add_column :procedures, :cloned_from_library, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index fb1b70f84..1c74d99f1 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: 2018_04_05_131207) do +ActiveRecord::Schema.define(version: 2018_04_11_152844) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -462,6 +462,7 @@ ActiveRecord::Schema.define(version: 2018_04_05_131207) do t.datetime "whitelisted_at" t.boolean "ask_birthday", default: false, null: false t.string "web_hook_url" + t.boolean "cloned_from_library", default: false t.index ["hidden_at"], name: "index_procedures_on_hidden_at" end