Apartment::Tenant.switch!("tenant_name")
即使租户存在,我在执行时也会出错。
当我运行 Apartment::tenant_names 时,它返回一个包含数组,["murah5","rahmatullah","test"]
然后我运行Apartment::Tenant.switch!("murah5")
它返回:
Apartment::TenantNotFound: One of the following schema(s) is invalid: "murah5" "public" from /Users/fourtyonestudio/.rvm/gems/ruby-2.4.1/gems/apartment-1.2.0/lib/apartment/adapters/postgresql_adapter.rb:72:in
在 connect_to_new 中救援'`
你能帮我处理这个案子吗?