Skip to main content

Aparment switch in multiple database rails application

Rails • Asked by Abhishek Aravindan

I have two rails application "base1" and "base2". base1 uses db1 and have multiple tenants inside this database. "base1" is multitenant application using apartment gem. "base2" is single tenant application and has database "db2" and also uses data from "db1". "base2" appplication established connection to db1 and i can get the data db1 data in public tenant in base 2 application.Now my doubt is: How to get data in another tenant schema inside db1 in base 2 application?


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.