Upgrading Postgres in Docker (and keep your data!)

We’re going to backup our database, stop the old Postgres, start the new one, and then restore our database on the new version. It sounds a little more complicated than it really is. If you’re curious on how Postgres backup and restore works, check out this earlier post. Start your old version of Postgres in … More Upgrading Postgres in Docker (and keep your data!)

What I learned while digging into FactoryGirl’s build_stubbed

Spoiler Alert: I found build_stubbed not viable as a replacement of create​in our test suite. To remove the dependency of the database in tests, I would recommend RSpec’s instance_double instead. Read on to find out why. I was excited to find out that FactoryGirl has methods to create in-memory objects instead of hitting the database. Running a … More What I learned while digging into FactoryGirl’s build_stubbed