Setting Up CI for a Multi-Database Rails App When One DB Is Read-Only

🚨 The Problem Everything worked fine locally, but CI kept failing. I was working on a Rails application that used two databases: A primary database (fully controlled by the app) A secondary database (owned by a different application) The catch was this: 👉 The secondary database was read-only from my app’s perspective. Locally, this was not a problem because the database already existed and had the expected schema. But in CI: ...

December 19, 2025 Â· Mausam Pun