From bf1e53c7096ea9817b7730bbae62a2ff2dd69ae4 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Thu, 24 Apr 2025 14:30:58 +0100 Subject: [PATCH] Add country field to lettings_logs table --- db/migrate/20250424132427_add_new_field_country.rb | 5 +++++ db/schema.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20250424132427_add_new_field_country.rb diff --git a/db/migrate/20250424132427_add_new_field_country.rb b/db/migrate/20250424132427_add_new_field_country.rb new file mode 100644 index 000000000..9e74d80ea --- /dev/null +++ b/db/migrate/20250424132427_add_new_field_country.rb @@ -0,0 +1,5 @@ +class AddNewFieldCountry < ActiveRecord::Migration[7.2] + def change + add_column :lettings_logs, :country, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 833703534..e9872b5f6 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.2].define(version: 2025_04_16_111741) do +ActiveRecord::Schema[7.2].define(version: 2025_04_24_132427) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -374,7 +374,7 @@ ActiveRecord::Schema[7.2].define(version: 2025_04_16_111741) do t.integer "multiple_partners_value_check" t.bigint "created_by_id" t.integer "referral_type" - t.boolean "manual_address_entry_selected", default: false + t.string "country" t.index ["assigned_to_id"], name: "index_lettings_logs_on_assigned_to_id" 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"