From 83df9292eac85b21f0b595f667b4a9ef4fe0166f Mon Sep 17 00:00:00 2001 From: magicmilo Date: Wed, 24 Nov 2021 13:37:52 +0000 Subject: [PATCH] change type --- db/migrate/20211119104835_add_property_info_fields.rb | 2 -- db/schema.rb | 2 -- spec/fixtures/complete_case_log.json | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/db/migrate/20211119104835_add_property_info_fields.rb b/db/migrate/20211119104835_add_property_info_fields.rb index 1cab3c7e1..e50eaba38 100644 --- a/db/migrate/20211119104835_add_property_info_fields.rb +++ b/db/migrate/20211119104835_add_property_info_fields.rb @@ -1,8 +1,6 @@ class AddPropertyInfoFields < ActiveRecord::Migration[6.1] def change change_table :case_logs, bulk: true do |t| - t.column :do_you_know_the_postcode, :int - t.column :do_you_know_the_local_authority, :int t.column :first_time_property_let_as_social_housing, :int t.column :why_dont_you_know_la, :string t.column :type_property_most_recently_let_as, :string diff --git a/db/schema.rb b/db/schema.rb index ecf56dd31..0221a6b6f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -154,8 +154,6 @@ ActiveRecord::Schema.define(version: 2021_11_19_104835) do t.integer "incref" t.datetime "sale_completion_date" t.datetime "startdate" - t.integer "do_you_know_the_postcode" - t.integer "do_you_know_the_local_authority" t.integer "first_time_property_let_as_social_housing" t.string "why_dont_you_know_la" t.string "type_property_most_recently_let_as" diff --git a/spec/fixtures/complete_case_log.json b/spec/fixtures/complete_case_log.json index 2345097dc..36d34c9fc 100644 --- a/spec/fixtures/complete_case_log.json +++ b/spec/fixtures/complete_case_log.json @@ -141,7 +141,7 @@ "why_dont_you_know_la": "Forgot", "first_time_property_let_as_social_housing": "Yes", "type_property_most_recently_let_as": "Affordable rent basis", - "property_number_of_times_relet_social_let": "1", + "property_number_of_times_relet_social_let": 1, "builtype": "Purpose built", "property_wheelchair_accessible": "Yes", "void_or_renewal_date": "05/05/2020",