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 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