Setting Up CI for a Multi-Database Rails App When One Database Is Read-Only
I was working on a Rails application that used two PostgreSQL databases. The primary database was owned by our application, so we could create it, run migrations, and modify the schema whenever we needed to. The second database was different. It belonged to another application, and our application only connected to it for reading data. We didn’t own its schema, and we weren’t responsible for running migrations against it. Everything worked perfectly on my local machine, so I didn’t think much about it. ...