I had the same issue and spent a lot of time trying to figure what caused this.
The solution is quite simple (at least in my case).
Straight from the documentation of the gem:
If you have some models that should always access the 'public' tenant,
you can specify this by configuring Apartment using
Apartment.configure. This will yield a config object for you. You can>
set excluded models like so:
config.excluded_models = ["User", "Company"] # these models
will not be multi-tenanted, but remain in the global (public)
namespace ```
So just add it your apartment.rb file.
Apartment.configure do |config|
config.excluded_models = %w{ User Company }
...
end