Browse Source

feat: add migration and updated schema

pull/893/head
natdeanlewissoftwire 2 years ago
parent
commit
7cd54e7a5e
  1. 5
      db/migrate/20220921154025_add_company_buyer_to_sales_log.rb
  2. 4
      db/schema.rb

5
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

4
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"

Loading…
Cancel
Save