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.
Posts from my personal blog
Using a pre-deploy hook can prevent ActiveRecord::ConcurrentMigrationError when multiple web containers boot at the same time.
UUIDv7 was added to PostgreSQL 18 to support time-based UUIDs, but you don't have to upgrade to take advantage of them now.
Ransack upgrade to 4.0 got your down? Here's a quick and easy fix if you're fine with exposing all columns.
Part 6 of a multi-part series for moving away from devise to Rails' authentication generator
Part 5 of a multi-part series for moving away from devise to Rails' authentication generator
Part 4 of a multi-part series for moving away from devise to Rails' authentication generator
Part 3 of a multi-part series for moving away from devise to Rails' authentication generator
Part 2 of a multi-part series for moving away from devise to Rails' authentication generator
Part 1 of a multi-part series for moving away from devise to Rails' authentication generator
Bluesky has blown up a bit recently as an X alternative. It provides a free API to post to an account's timeline.
Caddy offers a simplified and easier to manage configuration than nginx. I wanted to give it a try.
Want some code to run every few minutes but don't want to load up a scheduling library or background job processor?
Google One Tap provides an easy and frictionless method of allowing a user to authenticate with your application.
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.
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.
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?
Sidekiq 6 requires redis 4 or later. Some distros don't ship with that version so an upgrade is required.
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.
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
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.