DEV Community

Cover image for Rails snack - Upgrade to Ruby 3
Vernes Pendić for Wizard Health

Posted on

Rails snack - Upgrade to Ruby 3

There are a couple of posts I found online for the upgrade of Ruby to version 3. Very few of them mentioning Rails and its issues during the upgrade.

My versions prior to the upgrade:

rails -v
Rails 7.0.2.3

ruby -v
2.7.5

gem list
sidekiq (6.2.2)
Enter fullscreen mode Exit fullscreen mode

I'm mentioning sidekiq since it is the most commonly used background processing for Rails (and I had problems when updating 😅).

The two problems I had (not mentioned anywhere):

1. ActionCable.server.broadcast
This one went under the radar but without this change ActionCable won't work. Rails contributors fixed the issue but here it is for everyone

2. Sidekiq (and gems connected to it)
I had to upgrade sidekiq to the newest version because of the issue of log clutter. Specifically, this deprecation message. This has since been fixed (so update sidekiq). But not all gems connected to sidekiq have since caught up (sidekiq-statistic, sidekiq-cron... to mention a few). This is very annoying, especially for anyone using foreman, makes the logs unreadable. So keep an eye for updates if you are using any of these.

Would love for anyone who did the update to contribute with a comment below. Add any problems you had that were not mentioned anywhere so we can help as many people as possible in one place ❤️

Top comments (0)