From 0c1a3ea04b007a53de29d537cc2c37f45d29fc53 Mon Sep 17 00:00:00 2001 From: Kat Date: Wed, 27 Oct 2021 14:31:01 +0100 Subject: [PATCH] Add missing migration file and update API doc --- db/migrate/20211027123535_add_other_tenancy_type_field.rb | 7 +++++++ docs/api/DLUHC-CORE-Data.v1.json | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20211027123535_add_other_tenancy_type_field.rb diff --git a/db/migrate/20211027123535_add_other_tenancy_type_field.rb b/db/migrate/20211027123535_add_other_tenancy_type_field.rb new file mode 100644 index 000000000..38b8106c6 --- /dev/null +++ b/db/migrate/20211027123535_add_other_tenancy_type_field.rb @@ -0,0 +1,7 @@ +class AddOtherTenancyTypeField < ActiveRecord::Migration[6.1] + def change + change_table :case_logs, bulk: true do |t| + t.column :other_tenancy_type, :string + end + end +end diff --git a/docs/api/DLUHC-CORE-Data.v1.json b/docs/api/DLUHC-CORE-Data.v1.json index e95b730ca..7a4d495e2 100644 --- a/docs/api/DLUHC-CORE-Data.v1.json +++ b/docs/api/DLUHC-CORE-Data.v1.json @@ -1089,6 +1089,10 @@ }, "reasonable_preference_reason_do_not_know": { "type": "boolean" + }, + "other_tenancy-type": { + "type": "string", + "example": "private tenancy" } }, "required": [ @@ -1203,7 +1207,8 @@ "reasonable_preference_reason_unsatisfactory_housing", "reasonable_preference_reason_medical_grounds", "reasonable_preference_reason_avoid_hardship", - "reasonable_preference_reason_do_not_know" + "reasonable_preference_reason_do_not_know", + "other_tenancy-type" ] } },