Upgrading Rails
Extracted notes from RailsConf 2022
Why we have to upgrade?
Possible improvements to performance
Every new release might have a solution for existing performance issues
More attractive to developers
Nobody wants to work on outdated tech
Easier to find helpful docs
Developers write docs and engage with new updated documents and articles
Security updates, bug fixes etc
Some releases might have fixed security issues and fixed older bugs
New framework features
ActionCable, ActiveStorage, MultipleDBs, ActionText
Things to considered when upgrading
Should be enough dedicated time
Good test suit
Persistant. Because you might end up with weird errors
How many outdated gems you have?
Ways to upgrade
Paying someone else to do the upgrade
With long running branch
Dualboot
How to do it then?
Start with existing decprecation messages
Update the Gemfile to upgrade Rails
Check Rails's upgrade guide
Run rails app:update
Have one rollback plan
Tools available to help in upgrading rails
Reference: https://www.youtube.com/watch?v=NHZCQeh91p0&list=PLE7tQUdRKcyb2Mjtd1RBjeP3Jt9RukU7G&index=34
Last updated