From 27939cb4c1d667aa210c4055d858ee668c07c2eb Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 29 Aug 2023 05:31:23 +0100 Subject: [PATCH] Add imported_at columns --- db/migrate/20230828145454_add_migrated_on_fields.rb | 6 ++++++ db/schema.rb | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20230828145454_add_migrated_on_fields.rb diff --git a/db/migrate/20230828145454_add_migrated_on_fields.rb b/db/migrate/20230828145454_add_migrated_on_fields.rb new file mode 100644 index 000000000..d670c2af3 --- /dev/null +++ b/db/migrate/20230828145454_add_migrated_on_fields.rb @@ -0,0 +1,6 @@ +class AddMigratedOnFields < ActiveRecord::Migration[7.0] + def change + add_column :lettings_logs, :imported_at, :datetime + add_column :sales_logs, :imported_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index fe5b6cde4..e2ee90b5c 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: 2023_08_16_083950) do +ActiveRecord::Schema[7.0].define(version: 2023_08_28_145454) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -297,6 +297,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_16_083950) do t.integer "status_cache", default: 0, null: false t.datetime "discarded_at" t.integer "creation_method", default: 1 + t.datetime "imported_at" t.index ["bulk_upload_id"], name: "index_lettings_logs_on_bulk_upload_id" t.index ["created_by_id"], name: "index_lettings_logs_on_created_by_id" t.index ["location_id"], name: "index_lettings_logs_on_location_id" @@ -617,6 +618,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_16_083950) do t.integer "stairowned_value_check" t.integer "creation_method", default: 1 t.integer "old_form_id" + t.datetime "imported_at" t.index ["bulk_upload_id"], name: "index_sales_logs_on_bulk_upload_id" t.index ["created_by_id"], name: "index_sales_logs_on_created_by_id" t.index ["old_id"], name: "index_sales_logs_on_old_id", unique: true