There is a way to use multiple databases in Jets

Hi all,

I was trying to implement a multiple database selector with active record following this rails guide -->

Everything was ok, but when I tried to run Jets comands I got this error --> block in load_environments_config’: undefined method `database_selector=’ for nil:NilClass (NoMethodError)

Trying to find a way to solve it , I’ve discovered that is because rails have a Middleware called Database Selector, and listing the available middlewares of Jets, I didn’t found it on the list.

There is a way of using multiple databases (per example a primary and a replica) in Jets applications?

Thanks in advance!

Best regards!

1 Like