From 8e678d1bebfa80338049d0f4a6c09102cbf3c47f Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 9 Jan 2023 12:48:51 +0000 Subject: [PATCH] Add fromprop field to the sales log --- db/migrate/20230109124623_add_fromprop_to_sales.rb | 7 +++++++ db/schema.rb | 1 + 2 files changed, 8 insertions(+) create mode 100644 db/migrate/20230109124623_add_fromprop_to_sales.rb diff --git a/db/migrate/20230109124623_add_fromprop_to_sales.rb b/db/migrate/20230109124623_add_fromprop_to_sales.rb new file mode 100644 index 000000000..db18b5e12 --- /dev/null +++ b/db/migrate/20230109124623_add_fromprop_to_sales.rb @@ -0,0 +1,7 @@ +class AddFrompropToSales < ActiveRecord::Migration[7.0] + def change + change_table :sales_logs, bulk: true do |t| + t.column :fromprop, :integer + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 31f16f79d..7509cf5b0 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -471,6 +471,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_09_160738) do t.integer "hoday" t.integer "homonth" t.integer "hoyear" + t.integer "fromprop" 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"