diff --git a/app/models/case_log.rb b/app/models/case_log.rb index 5e8380e7a..4077e6d3b 100644 --- a/app/models/case_log.rb +++ b/app/models/case_log.rb @@ -48,6 +48,8 @@ class CaseLog < ApplicationRecord scope :for_organisation, ->(org) { where(owning_organisation: org).or(where(managing_organisation: org)) } enum status: { "not_started" => 0, "in_progress" => 1, "completed" => 2 } + enum letting_in_sheltered_accomodation: { "Yes - sheltered housing" => 0, "Yes - extra care housing" => 1, "No" => 2, "Don't know" => 3 } + enum ethnic: ETHNIC enum national: NATIONAL, _suffix: true enum ecstat1: ECSTAT, _suffix: true diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index 79775199f..9f4484411 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -1146,7 +1146,7 @@ "header": "", "description": "", "questions": { - "lettinginshelteredaccomodation": { + "letting_in_sheltered_accomodation": { "check_answer_label": "Is this letting in sheltered accommodation?", "header": "Is this letting in sheltered accommodation?", "hint_text": "", diff --git a/spec/factories/case_log.rb b/spec/factories/case_log.rb index ca2cd898e..fe0074824 100644 --- a/spec/factories/case_log.rb +++ b/spec/factories/case_log.rb @@ -152,7 +152,7 @@ FactoryBot.define do has_benefits { "Yes" } is_carehome { "No" } chcharge { 7 } - letting_in_sheltered_accomodation { 2 } + letting_in_sheltered_accomodation { "No" } end created_at { Time.zone.now } updated_at { Time.zone.now }