I have set up an application with tenants based on subdomain. Here I used the subdomain elevators and subdomain middleware as instructed.
Now, I would like to change the way Apartment finds the database schema to a different variable because I would like to let my users change their subdomain.
I have set up an application with tenants based on subdomain. Here I used the subdomain elevators and subdomain middleware as instructed.
Now, I would like to change the way Apartment finds the database schema to a different variable because I would like to let my users change their subdomain.
Steps to reproduce
Expected behavior
Apartment finds database by uuids
Actual behavior
Error with the following message
I understand that I should somehow change the schema names initially to the uuids but still there seems to be something wrong.
System configuration
Database: (Tell us what database and its version you use.)
psql (PostgreSQL) 12.3
Apartment version:
apartment (2.2.1)
Apartment config (in
config/initializers/apartment.rb
or so): see aboveuse_schemas
:true
Rails (or ActiveRecord) version:
rails (5.2.4.3)
Ruby version:
ruby (2.6.5)