You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggested steps we followed for Rails 7.0 upgrades
Update Rails version
Run rails app:update and accept all changes (press a).
Run rubocop -A to auto-fix any stylistic differences between the Rails defaults and our linter rules.
Review in git and keep/discard changes as appropriate.
Try to retain any config values that seem to have been set for a reason, while keeping new values that replace old defaults. Git blame is helpful here – for example to determine if particular lines were set for a reason, or if they haven’t been touched since the codebase was first generated.
Run the test suite to make sure it still passes – ignore deprecation notices, we'll fix them in the next step.
Run the test suite and look out for deprecation notices shown in the console.
Fix all deprecations. Note that some deprecations may come from other GOV.UK gems, which will need to be resolved in a separate piece of work. It's worth taking a note of them, though, as they can be turned into Trello cards.
How
https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-7-1-to-rails-7-2
rails app:update
command and review changesTasks
Suggested steps we followed for Rails 7.0 upgrades
The text was updated successfully, but these errors were encountered: