ruby on rails - Error When Switching Tenant Using Apartment Gem -
i getting error when execute apartment::tenant.switch!("tenant_name")
when tenant exists.
when run apartment::tenant_names,it return array contain ["murah5","rahmatullah","test"]
run apartment::tenant.switch!("murah5")
return :
apartment::tenantnotfound: 1 of following schema(s) invalid: "murah5" "public" /users/fourtyonestudio/.rvm/gems/ruby-2.4.1/gems/apartment-1.2.0/lib/apartment/adapters/postgresql_adapter.rb:72:in
rescue in connect_to_new'`
can me case ?
Comments
Post a Comment