Open rstrobl opened 5 years ago
what's the output of Tenant.table_name
?
Ran into this issue while upgrading my app to rails 5.2, any solutions?
Database: Mysql Apartment version: 2.2.1 Active Record version: 5.2.3 Rails version: 5.2.3 Ruby version: 2.6.0p0
Steps to reproduce
Let's say the seed is currently running for the tenant 'foobar'. These are the commands in
seeds.rb
and their outcomeExpected behavior
The tenant context switches work fine, however in
seeds.rb
there are no schemas being used for some reason. Expected behaviour should be:Actual behavior
System configuration
config/initializers/apartment.rb
: