From e37bfa7f5fa56e0214b92184fd785618573b3cd9 Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 22 Dec 2022 08:16:32 +0000 Subject: [PATCH] Add la nominations column to sales logs table --- db/migrate/20221222081402_add_la_nominations.rb | 7 +++++++ db/schema.rb | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20221222081402_add_la_nominations.rb diff --git a/db/migrate/20221222081402_add_la_nominations.rb b/db/migrate/20221222081402_add_la_nominations.rb new file mode 100644 index 000000000..1bc981183 --- /dev/null +++ b/db/migrate/20221222081402_add_la_nominations.rb @@ -0,0 +1,7 @@ +class AddLaNominations < ActiveRecord::Migration[7.0] + def change + change_table :sales_logs, bulk: true do |t| + t.column :lanomagr, :integer + end + end +end diff --git a/db/schema.rb b/db/schema.rb index d616fd6d5..6fd6777a2 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_21_122233) do +ActiveRecord::Schema[7.0].define(version: 2022_12_22_081402) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -419,12 +419,13 @@ ActiveRecord::Schema[7.0].define(version: 2022_12_21_122233) do t.integer "staircase" t.integer "stairbought" t.integer "stairowned" - t.decimal "mrent", precision: 10, scale: 2 t.datetime "exdate", precision: nil t.integer "exday" t.integer "exmonth" t.integer "exyear" t.integer "resale" + t.decimal "mrent", precision: 10, scale: 2 + t.integer "lanomagr" 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"