Browse Source

Reasonble preference displaying on check answers

pull/79/head
Matthew Phelan 4 years ago committed by Kat
parent
commit
1de53dae19
  1. 1
      app/models/case_log.rb
  2. 16
      db/migrate/20211103090530_change_field_types.rb
  3. 10
      db/schema.rb

1
app/models/case_log.rb

@ -86,7 +86,6 @@ class CaseLog < ApplicationRecord
enum landlord: DbEnums.landlord, _suffix: true
enum rsnvac: DbEnums.rsnvac, _suffix: true
enum unittype_gn: DbEnums.unittype_gn, _suffix: true
enum rp_homeless: DbEnums.polar, _suffix: true
enum rp_insan_unsat: DbEnums.polar, _suffix: true
enum rp_medwel: DbEnums.polar, _suffix: true

16
db/migrate/20211103090530_change_field_types.rb

@ -86,14 +86,14 @@ class ChangeFieldTypes < ActiveRecord::Migration[6.1]
t.change :illness_type_8, "boolean USING illness_type_8::boolean"
t.change :illness_type_9, "boolean USING illness_type_9::boolean"
t.change :illness_type_10, "boolean USING illness_type_10::boolean"
t.column :reasonable_preference_reason_homeless, :boolean
t.column :reasonable_preference_reason_unsatisfactory_housing, :boolean
t.column :reasonable_preference_reason_medical_grounds, :boolean
t.column :reasonable_preference_reason_avoid_hardship, :boolean
t.column :reasonable_preference_reason_do_not_know, :boolean
t.column :cbl_letting, :string
t.column :chr_letting, :string
t.column :cap_letting, :string
t.change :rp_homeless, :boolean
t.change :rp_insan_unsat, :boolean
t.change :rp_medwel, :boolean
t.change :rp_hardship, :boolean
t.change :rp_dontknow, :boolean
t.change :cbl_letting, :string
t.change :chr_letting, :string
t.change :cap_letting, :string
t.change :startertenancy, :string
t.change :tenancylength, :string
t.change :tenancy, :string

10
db/schema.rb

@ -125,11 +125,11 @@ ActiveRecord::Schema.define(version: 2021_11_03_090530) do
t.integer "illness_type_9"
t.integer "illness_type_10"
t.boolean "condition_effects_prefer_not_to_say"
t.boolean "rp_homeless"
t.boolean "rp_insan_unsat"
t.boolean "rp_medwel"
t.boolean "rp_hardship"
t.boolean "rp_dontknow"
t.integer "rp_homeless"
t.integer "rp_insan_unsat"
t.integer "rp_medwel"
t.integer "rp_hardship"
t.integer "rp_dontknow"
t.integer "offered"
t.datetime "discarded_at"
t.boolean "override_net_income_validation"

Loading…
Cancel
Save