Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Ruby 2.7.8 → 3.0.7, Rails 6.0 → 6.1 #857

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

glacials
Copy link
Owner

Had a tangled mess of a mass update to Rails 7, but had no confidence in its correctness, so taking it slow making incremental updates instead.

This branch's goal is only to update Ruby, but it seems Rails needs a bump to reasonably support that as well. There were a few explicit updates required along with that, and the rest of the gem updates were caused (so required) directly by the bundle update rails ... command.

The migrations were generated by Authie, which required them for its own upgrade.

@BatedUrGonnaDie
Copy link
Collaborator

I don't see it mentioned, but did you run the Rails specific update task and then make any changes we would need to based on the 6.0 -> 6.1 breaking changes?

@glacials
Copy link
Owner Author

Oh thanks, I didn't know about that! Have pushed those updates, and some test fixes.

Copy link
Collaborator

@BatedUrGonnaDie BatedUrGonnaDie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we wanna move to the 6.1 defaults, see my 2 comments. If not, LGTM send it.

#
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")

# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should load the defaults for 6.1 now (see other comment).

@@ -0,0 +1,67 @@
# Be sure to restart your server when you modify this file.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is only needed to enable 6.1 defaults one at a time. If possible can you test each one and then remove this and enable the 6.1 defaults?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to ship this and let it run for a bit first, so we have a smaller search space for any issues we hit. Then will swap over the defaults one by one!

@glacials glacials merged commit fb0120c into main Oct 18, 2024
2 checks passed
@glacials glacials deleted the upgrade_ruby_and_rails branch October 18, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants