即使租户已存在,执行Apartment::Tenant.switch!("tenant_name")
时出现错误。使用公寓宝石更换租户时出现错误
当我运行公寓:: 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'`
你可以帮我这个案子?