Browse Source

feat: update tests (and add housingneeds_type to schema that was previously missing)

pull/893/head
natdeanlewissoftwire 2 years ago
parent
commit
dfe95e2356
  1. 1
      db/schema.rb
  2. 1
      spec/factories/sales_log.rb

1
db/schema.rb

@ -235,6 +235,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_09_29_125204) do
t.bigint "location_id" t.bigint "location_id"
t.integer "major_repairs_date_value_check" t.integer "major_repairs_date_value_check"
t.integer "void_date_value_check" t.integer "void_date_value_check"
t.integer "housingneeds_type"
t.integer "housingneeds_other" t.integer "housingneeds_other"
t.index ["created_by_id"], name: "index_lettings_logs_on_created_by_id" t.index ["created_by_id"], name: "index_lettings_logs_on_created_by_id"
t.index ["location_id"], name: "index_lettings_logs_on_location_id" t.index ["location_id"], name: "index_lettings_logs_on_location_id"

1
spec/factories/sales_log.rb

@ -16,6 +16,7 @@ FactoryBot.define do
ownershipsch { 2 } ownershipsch { 2 }
type { 8 } type { 8 }
saledate { Time.utc(2022, 2, 2, 10, 36, 49) } saledate { Time.utc(2022, 2, 2, 10, 36, 49) }
companybuy { 1 }
jointpur { 1 } jointpur { 1 }
beds { 2 } beds { 2 }
jointmore { 1 } jointmore { 1 }

Loading…
Cancel
Save