All threads / Aparment switch in multiple database rails application

Ask A Question


You’re not receiving notifications from this thread.

Aparment switch in multiple database rails application

Abhishek Aravindan asked in Rails

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?

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 52,321+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.