I am using the Apartment Gem for the first time for Multitenancy in a Ruby on Rails project. I am trying to create multiple tenants for users in your digital library Rails application.
I am using Devise Gem for the authentication of the application, and I have generated the and I have generated config file by running the code below in my terminal
rails generate devise:install
I have also generated a User model for Devise using the code below in my terminal
rails generate devise User
And for the Apartment Gem, I have installed it and generated the config file by running the code below in my terminal
bundle exec rails generate apartment:install
I have also configured the config/initializers/apartment.rb
initializer file as needed using the documentation provided, and I have created a new tenant via my signup page at
localhost:3000/users/sign_up
But when I try viewing the newly created tenant at
http://newtenant.lvh.me:3000/
I get the error below
Apartment::TenantNotFound(One of the following schema(s) is invalid: "" "public")
I have tried to figure out the cause of the issue, but I still haven't been fortunate to get it fixed. I need some help. Thank you in advance.