RSSAmplifier

Blog

t27duck.com posts

Posts from my personal blog

t27duck.comRSS feed ↗20 posts

Latest posts

Running Migrations Once During a Multi-Host Kamal Deploy

Using a pre-deploy hook can prevent ActiveRecord::ConcurrentMigrationError when multiple web containers boot at the same time.

Using UUIDv7 with Rails without PostgreSQL 18

UUIDv7 was added to PostgreSQL 18 to support time-based UUIDs, but you don't have to upgrade to take advantage of them now.

Allow all columns and relations in associations in Ransack 4

Ransack upgrade to 4.0 got your down? Here's a quick and easy fix if you're fine with exposing all columns.

Migrating Away from Devise Part 6: Trackable Module and Tests

Part 6 of a multi-part series for moving away from devise to Rails' authentication generator

Migrating Away from Devise Part 5: User Sign-up

Part 5 of a multi-part series for moving away from devise to Rails' authentication generator

Migrating Away from Devise Part 4: Email Confirmation Setup

Part 4 of a multi-part series for moving away from devise to Rails' authentication generator

Migrating Away from Devise Part 3: Password Recovery

Part 3 of a multi-part series for moving away from devise to Rails' authentication generator

Migrating Away from Devise Part 2: Sign-in

Part 2 of a multi-part series for moving away from devise to Rails' authentication generator

Migrating Away from Devise Part 1: Setup and Sessions

Part 1 of a multi-part series for moving away from devise to Rails' authentication generator

A Bluesky AT Proto API Example in Ruby

Bluesky has blown up a bit recently as an X alternative. It provides a free API to post to an account's timeline.

Migrating From Nginx to Caddy

Caddy offers a simplified and easier to manage configuration than nginx. I wanted to give it a try.

Quick and dirty cron for Rails

Want some code to run every few minutes but don't want to load up a scheduling library or background job processor?

Integrating Google One Tap in a Rails Application

Google One Tap provides an easy and frictionless method of allowing a user to authenticate with your application.

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

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.

How I Upgrade Ruby on Rails

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.

Programmatically Defer Sidekiq Jobs

Sidekiq will happily chug along and process any and all jobs that are in the queue. But, what if you want it to take a break for a bit?

Upgrading redis... not as difficult as you may think

Sidekiq 6 requires redis 4 or later. Some distros don't ship with that version so an upgrade is required.

Building, installing, and configuring your own Ruby RPM for CentOS

If you're running your Ruby apps on your own server, you obviously need Ruby installed. The problem is the version of Ruby provided by the OS is commonly not what you want.

Seamlessly migrating from one git service to another for your team and capistrano

I decided to move my projects from one hosted git service to a different one and needed to make the change near seamless for contributors and production

Migrating from unicorn to puma with no downtime

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.