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:inrescue in connect_to_new'`

can me case ?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -