Browse Source

Fix migration

pull/41/head
baarkerlounger 3 years ago
parent
commit
07c24913a9
  1. 2
      db/migrate/20211011115946_rename_economic_status_fields.rb
  2. 3
      db/schema.rb

2
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_6_economic, :person_6_economic_status
t.rename :person_7_economic, :person_7_economic_status t.rename :person_7_economic, :person_7_economic_status
t.rename :person_8_economic, :person_8_economic_status t.rename :person_8_economic, :person_8_economic_status
t.rename :postcode, :property_postcode t.remove :postcode
end end
end end
end end

3
db/schema.rb

@ -57,7 +57,6 @@ ActiveRecord::Schema.define(version: 2021_10_11_115946) do
t.integer "person_8_age" t.integer "person_8_age"
t.string "person_8_gender" t.string "person_8_gender"
t.string "person_8_economic_status" t.string "person_8_economic_status"
t.string "postcode"
t.string "homelessness" t.string "homelessness"
t.string "reason_for_leaving_last_settled_home" t.string "reason_for_leaving_last_settled_home"
t.string "benefit_cap_spare_room_subsidy" 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_lived_in_la"
t.string "time_on_la_waiting_list" t.string "time_on_la_waiting_list"
t.string "previous_la" t.string "previous_la"
t.string "property_postcode"
t.string "reasonable_preference" t.string "reasonable_preference"
t.string "reasonable_preference_reason" t.string "reasonable_preference_reason"
t.string "cbl_letting" 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_medical_grounds"
t.boolean "reasonable_preference_reason_avoid_hardship" t.boolean "reasonable_preference_reason_avoid_hardship"
t.boolean "reasonable_preference_reason_do_not_know" t.boolean "reasonable_preference_reason_do_not_know"
t.string "property_postcode"
end end
end end

Loading…
Cancel
Save