All Posts

Quick and dirty cron for Rails

Published: May 22, 2024
Want some code to run every few minutes but don't want to load up a scheduling library or background job processor?
Tags: rails

Integrating Google One Tap in a Rails Application

Published: June 25, 2022
Google One Tap provides an easy and frictionless method of allowing a user to authenticate with your application.
Tags: rails

Adding an index to a partitioned table and its children in PostgreSQL and Rails

Published: March 30, 2022
Postgres 10+ made partitioning tables much easier, however adding an index to a table with many partitions and data in them already is not straightforward if you want to avoid long table locking.
Tags: rails

How I Upgrade Ruby on Rails

Published: December 20, 2020
Another year, another major Rails release. Rails 6.1 looks to be a solid one. Though, despite all the new features and fixes a new Rails version brings, there is always one looming problem for developers - the upgrade.
Tags: rails

Migrating from unicorn to puma with no downtime

Published: June 26, 2016
I decided want to migrate a Rails 4.2 side project from unicorn to puma. The app has relatively high traffic throughout the day, so I want to avoid any visible downtime.
Tags: rails