From 2f740c81c0f1029a6317d5346b9b866b8b704dbc Mon Sep 17 00:00:00 2001 From: Dave Kimura Date: Tue, 2 Dec 2025 16:07:04 -0500 Subject: [PATCH 1/2] (account): encode external_account_id in slug - Use `AccountSlug.encode` to generate slug instead of raw ID - Fixes where slug is /1 and will be in the proper format of /0000001 --- app/models/account.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/account.rb b/app/models/account.rb index 01f4d1d8f..f74660cbb 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -27,7 +27,7 @@ class Account < ApplicationRecord end def slug - "/#{external_account_id}" + "/#{AccountSlug.encode(external_account_id)}" end def account From 4c669b26fbe854525c0928f9c7f12da244c8d4a0 Mon Sep 17 00:00:00 2001 From: Dave Kimura Date: Tue, 2 Dec 2025 16:11:10 -0500 Subject: [PATCH 2/2] Updated database.sqlite.yml --- config/database.sqlite.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/database.sqlite.yml b/config/database.sqlite.yml index 16ae64765..38616e743 100644 --- a/config/database.sqlite.yml +++ b/config/database.sqlite.yml @@ -32,3 +32,11 @@ production: <<: *default database: storage/production_cable.sqlite3 migrations_paths: db/cable_migrate + cache: + <<: *default + database: storage/production_cache.sqlite3 + migrations_paths: db/cache_migrate + queue: + <<: *default + database: storage/production_queue.sqlite3 + migrations_paths: db/queue_migrate