diff --git a/app/models/case_log.rb b/app/models/case_log.rb index f6b4535d0..0387083f0 100644 --- a/app/models/case_log.rb +++ b/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 diff --git a/db/migrate/20211103090530_change_field_types.rb b/db/migrate/20211103090530_change_field_types.rb index 3a006cad8..e6f0d9a07 100644 --- a/db/migrate/20211103090530_change_field_types.rb +++ b/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 diff --git a/db/schema.rb b/db/schema.rb index 72534b28e..ff7ae942b 100644 --- a/db/schema.rb +++ b/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"