Skip to content

Rails 8.1 current, dual-boot with Rails main - #49

Merged
etagwerker merged 1 commit into
upgrade-rails-8.1-dual-bootfrom
rails-8.1-next-main
Nov 22, 2026
Merged

etagwerker merged 1 commit into
upgrade-rails-8.1-dual-bootfrom
rails-8.1-next-main

Conversation

@etagwerker

Copy link
Copy Markdown
Member

Summary

Makes Rails 8.1.4.1 the current version and dual-boots against Rails main (8.2.0.alpha at 6ef561e) as the next version. It's one commit on top of #48, so this PR is stacked on upgrade-rails-8.1-dual-boot and its base is that branch. Merge #48 first, then retarget this one to main.

Gemfile runs 8.1 and Gemfile.next runs Rails main. The suite is green on both (83 examples, 0 failures).

What changed

  • Gemfile: if next? now picks github: "rails/rails", branch: "main", and the else side picks ~> 8.1.0.
  • Collapsed the 8.1 branches (next side wins): max_connections in database.yml, and the to_time_preserves_timezone override is gone. No NextRails.next? calls are left in app, config, lib or spec.
  • rspec-rails from GitHub main on the next side only. 7.1.1 raises a FrozenError in the three view specs on Rails main (view.lookup_context.prefixes is frozen). The current side stays on the released rspec-rails 7.1.1.
  • CI: the Gemfile.next job is now continue-on-error. Rails main moves daily, so a red job there is a heads up, not a blocker. The Gemfile job still blocks.
  • Gemfile.lock is the 8.1.4.1 lockfile. Gemfile.next.lock pins Rails main to 6ef561e and rspec-rails main, so refresh it with BUNDLE_GEMFILE=Gemfile.next bundle update rails rspec-rails when you want to look at newer edge.

Things worth a close look

  • One deprecation on Rails main: config.active_record.raise_on_assign_to_attr_readonly is deprecated and goes away in Rails 9.0. It comes from load_defaults 7.0 (the app doesn't set it), so I left it for the load_defaults follow-up PRs.
  • GitHub sign-in is not covered by specs (Devise 4.8 to 5.0 via ombu_labs-auth 1.2, see Upgrade Rails to 8.0, dual-boot with 8.1 #48).
  • load_defaults is still 7.0.
  • Rails main is pre-release. Nothing here should ship to production on that side.

Verification

  • bundle exec rspec on Gemfile (8.1.4.1): 83 examples, 0 failures, no DEPRECATION WARNING lines
  • bundle exec rspec on Gemfile.next (8.2.0.alpha): 83 examples, 0 failures, 1 deprecation (above)
  • Not done: a deploy to staging or a Heroku review app

🤖 Generated with Claude Code

- Gemfile: 8.1 current, rails/rails main next (8.2.0.alpha)
- rspec-rails from GitHub main on the next side (7.1.1 raises a
  FrozenError in view specs on Rails main)
- Collapse the 8.1 NextRails.next? branches (next side wins)
- CI: the Gemfile.next job no longer blocks the build

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@etagwerker
etagwerker marked this pull request as ready for review November 22, 2026 02:39
@etagwerker
etagwerker merged commit 525ba9c into upgrade-rails-8.1-dual-boot Nov 22, 2026
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.

1 participant