From 65338a6f8ef8349d42a3c3f8855f94e9bce2c164 Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 22 Dec 2022 12:02:55 +0000 Subject: [PATCH] Add soctenant field to sales logs --- db/migrate/20221222120105_add_soctenant.rb | 7 +++++++ db/schema.rb | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20221222120105_add_soctenant.rb diff --git a/db/migrate/20221222120105_add_soctenant.rb b/db/migrate/20221222120105_add_soctenant.rb new file mode 100644 index 000000000..43dfc56e5 --- /dev/null +++ b/db/migrate/20221222120105_add_soctenant.rb @@ -0,0 +1,7 @@ +class AddSoctenant < ActiveRecord::Migration[7.0] + def change + change_table :sales_logs, bulk: true do |t| + t.column :soctenant, :integer + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 9b00a3a78..6ea1f0246 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_12_22_081402) do +ActiveRecord::Schema[7.0].define(version: 2022_12_22_120105) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -428,6 +428,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_12_22_081402) do t.decimal "deposit", precision: 10, scale: 2 t.decimal "cashdis", precision: 10, scale: 2 t.integer "lanomagr" + t.integer "soctenant" 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"