From ef69a32cc90ecbfe00156fd43e917ff90faea4d1 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 29 Sep 2022 15:08:42 +0100 Subject: [PATCH] feat: add buyer 2-1 migration and schema --- ...0929125204_add_buyer2_relationship_to_buyer1_column.rb | 8 ++++++++ db/schema.rb | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20220929125204_add_buyer2_relationship_to_buyer1_column.rb diff --git a/db/migrate/20220929125204_add_buyer2_relationship_to_buyer1_column.rb b/db/migrate/20220929125204_add_buyer2_relationship_to_buyer1_column.rb new file mode 100644 index 000000000..e59b63c05 --- /dev/null +++ b/db/migrate/20220929125204_add_buyer2_relationship_to_buyer1_column.rb @@ -0,0 +1,8 @@ +class AddBuyer2RelationshipToBuyer1Column < ActiveRecord::Migration[7.0] + def change + change_table :sales_logs, bulk: true do |t| + t.column :relat2, :string + t.column :otherrelat2, :string + end + end +end diff --git a/db/schema.rb b/db/schema.rb index e6037aac8..5e488f3a8 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_28_132657) do +ActiveRecord::Schema[7.0].define(version: 2022_09_29_125204) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -340,6 +340,8 @@ ActiveRecord::Schema[7.0].define(version: 2022_09_28_132657) do t.integer "buy1livein" t.integer "buylivein" t.integer "proptype" + t.string "relat2" + t.string "otherrelat2" 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"