From 66622274015142db7aa3b4b7ae2fe6b5ef3ab8eb Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 16 Sep 2022 12:59:08 +0100 Subject: [PATCH] Add type column to the sales logs table --- db/migrate/20220916110129_add_shared_ownership_type.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20220916110129_add_shared_ownership_type.rb diff --git a/db/migrate/20220916110129_add_shared_ownership_type.rb b/db/migrate/20220916110129_add_shared_ownership_type.rb new file mode 100644 index 000000000..24c930991 --- /dev/null +++ b/db/migrate/20220916110129_add_shared_ownership_type.rb @@ -0,0 +1,5 @@ +class AddSharedOwnershipType < ActiveRecord::Migration[7.0] + def change + add_column :sales_logs, :type, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index b187f2867..094013896 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_15_093559) do +ActiveRecord::Schema[7.0].define(version: 2022_09_16_110129) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -322,6 +322,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_09_15_093559) 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"