From c301315d929be3f45764ff4f21c853ab9d5bf05e Mon Sep 17 00:00:00 2001 From: Kat Date: Wed, 9 Nov 2022 13:27:14 +0000 Subject: [PATCH] add deactivation_date to locations --- .../20221109122033_add_deactivation_date_to_locations.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20221109122033_add_deactivation_date_to_locations.rb diff --git a/db/migrate/20221109122033_add_deactivation_date_to_locations.rb b/db/migrate/20221109122033_add_deactivation_date_to_locations.rb new file mode 100644 index 000000000..3360bfc7c --- /dev/null +++ b/db/migrate/20221109122033_add_deactivation_date_to_locations.rb @@ -0,0 +1,5 @@ +class AddDeactivationDateToLocations < ActiveRecord::Migration[7.0] + def change + add_column :locations, :deactivation_date, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 43fc94775..ea4b59670 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[7.0].define(version: 2022_10_19_082625) do +ActiveRecord::Schema[7.0].define(version: 2022_11_09_122033) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -260,6 +260,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_10_19_082625) do t.datetime "startdate", precision: nil t.string "location_admin_district" t.boolean "confirmed" + t.datetime "deactivation_date" t.index ["old_id"], name: "index_locations_on_old_id", unique: true t.index ["scheme_id"], name: "index_locations_on_scheme_id" end