Browse Source

2022/23 updates for tenancy information

pull/419/head
roobottom 3 years ago
parent
commit
17772de624
  1. 56
      config/forms/2022_2023.json
  2. 7
      db/migrate/20220324155558_add_joint_tenancy_field.rb
  3. 1
      db/schema.rb

56
config/forms/2022_2023.json

@ -1,7 +1,7 @@
{ {
"form_type": "lettings", "form_type": "lettings",
"start_date": "2022-04-01T00:00:00.000+01:00", "start_date": "2022-04-01T00:00:00.000+01:00",
"end_date": "2023-07-01T00:00:00.000+01:00", "end_date": "2023-03-31T23:59:59.999+01:00",
"sections": { "sections": {
"setup": { "setup": {
"label": "Before you start", "label": "Before you start",
@ -1016,30 +1016,33 @@
"hint_text": "", "hint_text": "",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": {
"value": "Assured"
},
"1": { "1": {
"value": "Assured Shorthold" "value": "Assured Shorthold Tenancy (AST) - fixed term"
}, },
"2": { "2": {
"value": "Licence agreement (almshouses only)" "value": "Assured - lifetime"
}, },
"3": { "6": {
"value": "Secure (including flexible)" "value": "Secure - fixed term"
}, },
"4": { "7": {
"value": "Secure - lifetime"
},
"5": {
"value": "Licence agreement"
},
"3": {
"value": "Other" "value": "Other"
} }
}, },
"conditional_for": { "conditional_for": {
"tenancyother": [ "tenancyother": [
4 3
] ]
} }
}, },
"tenancyother": { "tenancyother": {
"header": "Please state the tenancy type", "header": "Tenancy type",
"hint_text": "", "hint_text": "",
"type": "text" "type": "text"
} }
@ -1060,25 +1063,28 @@
"hint_text": "This is also known as an ‘introductory period’.", "hint_text": "This is also known as an ‘introductory period’.",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": {
"value": "Assured"
},
"1": { "1": {
"value": "Assured Shorthold" "value": "Assured Shorthold Tenancy (AST) - fixed term"
}, },
"2": { "2": {
"value": "Licence agreement (almshouses only)" "value": "Assured - lifetime"
}, },
"3": { "6": {
"value": "Secure (including flexible)" "value": "Secure - fixed term"
}, },
"4": { "7": {
"value": "Secure - lifetime"
},
"5": {
"value": "Licence agreement"
},
"3": {
"value": "Other" "value": "Other"
} }
}, },
"conditional_for": { "conditional_for": {
"tenancyother": [ "tenancyother": [
4 3
] ]
} }
}, },
@ -1128,19 +1134,19 @@
"hint_text": "", "hint_text": "",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": {
"value": "Yes – sheltered housing"
},
"1": { "1": {
"value": "Yes – extra care housing" "value": "Yes - specialist retirement housing"
}, },
"2": { "2": {
"value": "Yes – extra care housing"
},
"3": {
"value": "No" "value": "No"
}, },
"divider": { "divider": {
"value": true "value": true
}, },
"3": { "4": {
"value": "Don’t know" "value": "Don’t know"
} }
} }

7
db/migrate/20220324155558_add_joint_tenancy_field.rb

@ -0,0 +1,7 @@
class AddJointTenancyField < ActiveRecord::Migration[7.0]
def change
change_table :case_logs, bulk: true do |t|
t.column :jointtenancy, :integer
end
end
end

1
db/schema.rb

@ -229,6 +229,7 @@ ActiveRecord::Schema[7.0].define(version: 202202071123100) do
t.integer "vmonth" t.integer "vmonth"
t.integer "vyear" t.integer "vyear"
t.decimal "wchchrg", precision: 10, scale: 2 t.decimal "wchchrg", precision: 10, scale: 2
t.integer "jointtenancy"
t.index ["managing_organisation_id"], name: "index_case_logs_on_managing_organisation_id" t.index ["managing_organisation_id"], name: "index_case_logs_on_managing_organisation_id"
t.index ["owning_organisation_id"], name: "index_case_logs_on_owning_organisation_id" t.index ["owning_organisation_id"], name: "index_case_logs_on_owning_organisation_id"
end end

Loading…
Cancel
Save