I have Blazer 3.0.0 running on my Rails 7 app with a multi-database config. I could create and save queries however, Blazer showed a flash error message:
ActiveRecord::ConnectionNotEstablished
when I tried to run any queries as shown below.
I have Blazer 3.0.0 running on my Rails 7 app with a multi-database config. I could create and save queries however, Blazer showed a flash error message:
ActiveRecord::ConnectionNotEstablished
when I tried to run any queries as shown below.
Copyright © 2021 Jogjafile Inc.
I have to enforce Blazer to use a writing role DB connection.
I think Blazer still uses the main Rails app db connection pool to save some Blazer's Blazer-related things in the DB. Running a query is a GET request and Rails will assign a reading role to the request causing Blazer to fail.