RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Best practices for Ruby on Rails data migrations

The blog post “Best Practices for Ruby on Rails Data Migrations” https://www.monterail.com/blog/best-practices-for-ruby-on-rails-data-migrations offers practical advice on handling data migrations in Ruby on Rails applications. It covers key strategies for ensuring smooth, reliable migrations, including techniques for minimizing downtime, managing large datasets, and maintaining data integrity. The post provides actionable tips and best practices to help developers execute migrations effectively while avoiding common pitfalls.

Grepfruit: Codebase Search with Regex

If you’ve been looking for a way to search your codebase with regex patterns, here it is: Grepfruit. Ideal for CI/CD pipelines and beyond, Grepfruit lets you search for, e.g., TODO comments, excluding files or directories, truncating the output, and providing colorized results for easy readability.

War Against Bots

War Against Bots is an article I wrote after I had launched www.whoishiring.jobs. I immediately got hit by form spam and automatic vulnerability scans. I investigated the problem and promptly employed a few simple defense mechanisms that reduced the incidence of these attacks to almost zero.

Run and roll back migrations via UI

Tired of using the CLI for running and rolling back migrations? There is a solution for you. The recent release of actual_db_schema (v0.7.6) provides a web UI to list, view details, migrate, and roll back your schema migrations. With zero configuration, simply install the actual_db_schema gem, visit http://localhost:3000/rails/migrations, and enjoy. In addition to the actual migrations, it will also show the phantom ones (those that were migrated in feature branches) that can be rolled back with just one click. Watch a short video in this tweet that shows all that in action.

Integrating Sidekiq with Async

In this post I explain how you can have persistent connections to Redis using Async::Redis client inside Sidekiq and why it doesn’t work by default. There are some basic explanations of how Async and Sidekiq work and some source code.

Loading older posts