diff --git a/db/migrate/20220921154025_add_company_buyer_to_sales_log.rb b/db/migrate/20220921154025_add_company_buyer_to_sales_log.rb new file mode 100644 index 000000000..89de76ca9 --- /dev/null +++ b/db/migrate/20220921154025_add_company_buyer_to_sales_log.rb @@ -0,0 +1,5 @@ +class AddCompanyBuyerToSalesLog < ActiveRecord::Migration[7.0] + def change + add_column :sales_logs, :companybuy, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 87714f00f..279cd7cd2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2022_09_20_132907) do +ActiveRecord::Schema[7.0].define(version: 2022_09_21_154025) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -230,7 +230,6 @@ ActiveRecord::Schema[7.0].define(version: 2022_09_20_132907) do t.bigint "location_id" t.integer "major_repairs_date_value_check" t.integer "void_date_value_check" - t.integer "housingneeds_type" t.integer "housingneeds_other" t.index ["created_by_id"], name: "index_lettings_logs_on_created_by_id" t.index ["location_id"], name: "index_lettings_logs_on_location_id" @@ -326,6 +325,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_09_20_132907) do t.integer "ownershipsch" t.integer "jointpur" t.string "othtype" + t.integer "companybuy" t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id" t.index ["managing_organisation_id"], name: "index_sales_logs_on_managing_organisation_id" t.index ["owning_organisation_id"], name: "index_sales_logs_on_owning_organisation_id"