From 07c24913a9e413eef708a2df84c1ba2bf4a8c3a9 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 12 Oct 2021 10:01:14 +0100 Subject: [PATCH] Fix migration --- db/migrate/20211011115946_rename_economic_status_fields.rb | 2 +- db/schema.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/db/migrate/20211011115946_rename_economic_status_fields.rb b/db/migrate/20211011115946_rename_economic_status_fields.rb index b7c6a94ab..295980bae 100644 --- a/db/migrate/20211011115946_rename_economic_status_fields.rb +++ b/db/migrate/20211011115946_rename_economic_status_fields.rb @@ -8,7 +8,7 @@ class RenameEconomicStatusFields < ActiveRecord::Migration[6.1] t.rename :person_6_economic, :person_6_economic_status t.rename :person_7_economic, :person_7_economic_status t.rename :person_8_economic, :person_8_economic_status - t.rename :postcode, :property_postcode + t.remove :postcode end end end diff --git a/db/schema.rb b/db/schema.rb index 539a5d32c..08f44eb0a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -57,7 +57,6 @@ ActiveRecord::Schema.define(version: 2021_10_11_115946) do t.integer "person_8_age" t.string "person_8_gender" t.string "person_8_economic_status" - t.string "postcode" t.string "homelessness" t.string "reason_for_leaving_last_settled_home" t.string "benefit_cap_spare_room_subsidy" @@ -102,6 +101,7 @@ ActiveRecord::Schema.define(version: 2021_10_11_115946) do t.string "time_lived_in_la" t.string "time_on_la_waiting_list" t.string "previous_la" + t.string "property_postcode" t.string "reasonable_preference" t.string "reasonable_preference_reason" t.string "cbl_letting" @@ -132,7 +132,6 @@ ActiveRecord::Schema.define(version: 2021_10_11_115946) do t.boolean "reasonable_preference_reason_medical_grounds" t.boolean "reasonable_preference_reason_avoid_hardship" t.boolean "reasonable_preference_reason_do_not_know" - t.string "property_postcode" end end