Browse Source

change type

pull/95/head
magicmilo 3 years ago
parent
commit
83df9292ea
  1. 2
      db/migrate/20211119104835_add_property_info_fields.rb
  2. 2
      db/schema.rb
  3. 2
      spec/fixtures/complete_case_log.json

2
db/migrate/20211119104835_add_property_info_fields.rb

@ -1,8 +1,6 @@
class AddPropertyInfoFields < ActiveRecord::Migration[6.1] class AddPropertyInfoFields < ActiveRecord::Migration[6.1]
def change def change
change_table :case_logs, bulk: true do |t| 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 :first_time_property_let_as_social_housing, :int
t.column :why_dont_you_know_la, :string t.column :why_dont_you_know_la, :string
t.column :type_property_most_recently_let_as, :string t.column :type_property_most_recently_let_as, :string

2
db/schema.rb

@ -154,8 +154,6 @@ ActiveRecord::Schema.define(version: 2021_11_19_104835) do
t.integer "incref" t.integer "incref"
t.datetime "sale_completion_date" t.datetime "sale_completion_date"
t.datetime "startdate" 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.integer "first_time_property_let_as_social_housing"
t.string "why_dont_you_know_la" t.string "why_dont_you_know_la"
t.string "type_property_most_recently_let_as" t.string "type_property_most_recently_let_as"

2
spec/fixtures/complete_case_log.json vendored

@ -141,7 +141,7 @@
"why_dont_you_know_la": "Forgot", "why_dont_you_know_la": "Forgot",
"first_time_property_let_as_social_housing": "Yes", "first_time_property_let_as_social_housing": "Yes",
"type_property_most_recently_let_as": "Affordable rent basis", "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", "builtype": "Purpose built",
"property_wheelchair_accessible": "Yes", "property_wheelchair_accessible": "Yes",
"void_or_renewal_date": "05/05/2020", "void_or_renewal_date": "05/05/2020",

Loading…
Cancel
Save