From 2f15d5e521ecf24a83198cd2b02f4edce140fe26 Mon Sep 17 00:00:00 2001 From: Dushan Despotovic Date: Fri, 16 Sep 2022 14:00:19 +0100 Subject: [PATCH] Add ownership scheme field to db Isolating this into a separate commit so it can be cherry picked for any other sales logs work that's necessary. --- .../20220916125704_add_ownership_scheme_to_sales_log.rb | 5 +++++ db/schema.rb | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20220916125704_add_ownership_scheme_to_sales_log.rb diff --git a/db/migrate/20220916125704_add_ownership_scheme_to_sales_log.rb b/db/migrate/20220916125704_add_ownership_scheme_to_sales_log.rb new file mode 100644 index 000000000..bb34ec864 --- /dev/null +++ b/db/migrate/20220916125704_add_ownership_scheme_to_sales_log.rb @@ -0,0 +1,5 @@ +class AddOwnershipSchemeToSalesLog < ActiveRecord::Migration[7.0] + def change + add_column :sales_logs, :ownershipsch, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 094013896..ccd8af420 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_16_110129) do +ActiveRecord::Schema[7.0].define(version: 2022_09_16_125704) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -322,7 +322,6 @@ ActiveRecord::Schema[7.0].define(version: 2022_09_16_110129) do t.bigint "managing_organisation_id" t.bigint "created_by_id" t.string "purchid" - t.integer "type" 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"