From 8ab0d7c901141f363c472a456f3fd8ff8a09c9cc Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 20 Dec 2022 17:46:38 +0000 Subject: [PATCH] Add staircase field to sales_logs table --- db/migrate/20221220174515_add_staircase_to_sales.rb | 7 +++++++ db/schema.rb | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20221220174515_add_staircase_to_sales.rb diff --git a/db/migrate/20221220174515_add_staircase_to_sales.rb b/db/migrate/20221220174515_add_staircase_to_sales.rb new file mode 100644 index 000000000..de0b28996 --- /dev/null +++ b/db/migrate/20221220174515_add_staircase_to_sales.rb @@ -0,0 +1,7 @@ +class AddStaircaseToSales < ActiveRecord::Migration[7.0] + def change + change_table :sales_logs, bulk: true do |t| + t.column :staircase, :integer + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 393022fd0..2246c8690 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_14_110208) do +ActiveRecord::Schema[7.0].define(version: 2022_12_20_174515) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -405,16 +405,17 @@ ActiveRecord::Schema[7.0].define(version: 2022_12_14_110208) do t.integer "savings" t.integer "prevown" t.string "sex3" + t.bigint "updated_by_id" t.integer "details_known_1" t.integer "income1_value_check" t.integer "mortgage" t.integer "inc2mort" t.integer "mortgage_value_check" - t.bigint "updated_by_id" t.integer "ecstat3" t.integer "ecstat4" t.integer "ecstat5" t.integer "ecstat6" + t.integer "staircase" 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"