Rails Upgrade Assistant Skill
A Claude Code skill that helps you upgrade Ruby on Rails applications from version 2.3 through 8.1.
What Does This Skill Do?
The Rails Upgrade Assistant analyzes your Rails application and generates:
- Comprehensive Upgrade Reports - Detailed migration guides with OLD vs NEW code examples from your actual codebase
- app:update Previews - Shows exactly what configuration files will change when you run
rails app:update
The skill follows a sequential upgrade strategy—you upgrade one minor/major version at a time (e.g., 5.2 → 6.0 → 6.1 → 7.0), never skipping versions.
Why Trust This Skill?
This skill is built on real-world experience, not just documentation:
- 60,000+ developer hours of Rails upgrade experience
- Upgrades from Rails 2.3 to Rails 8.1 for clients worldwide
- Based on the methodology documented in "The Complete Guide to Upgrade Rails" ebook
- Created by the team at FastRuby.io, specialists in Rails upgrades since 2017
We've encountered (and solved) edge cases that don't appear in any documentation. This skill encapsulates that hard-won knowledge.
How to Use This Skill
Installation
This skill depends on two companion skills: rails-load-defaults and dual-boot. The marketplace install handles all three.
From inside the Claude Code CLI prompt (recommended):
/plugin marketplace add ombulabs/claude-skills
/plugin install rails-upgrade@ombulabs-ai
/plugin install rails-load-defaults@ombulabs-ai
/plugin install dual-boot@ombulabs-ai
From your terminal:
claude plugin marketplace add https://github.com/ombulabs/claude-skills.git
claude plugin install rails-upgrade@ombulabs-ai
claude plugin install rails-load-defaults@ombulabs-ai
claude plugin install dual-boot@ombulabs-ai
Manual install:
# 1. This skill
git clone https://github.com/ombulabs/claude-code_rails-upgrade-skill.git
cp -r claude-code_rails-upgrade-skill/rails-upgrade ~/.claude/skills/
# 2. rails-load-defaults (dependency)
git clone https://github.com/ombulabs/claude-code_rails-load-defaults-skill.git
cp -r claude-code_rails-load-defaults-skill/rails-load-defaults ~/.claude/skills/
# 3. dual-boot (dependency)
git clone https://github.com/ombulabs/claude-code_dual-boot-skill.git
cp -r claude-code_dual-boot-skill/dual-boot ~/.claude/skills/
Basic Usage
In Claude Code, navigate to your Rails application directory and use natural language:
"Upgrade my Rails app to 7.2"
"Help me upgrade from Rails 6.1 to 7.0"
"What breaking changes are in Rails 8.0?"
Workflow
- Ask for an upgrade → Claude generates detailed reports based on your actual code
- Implement the changes → Follow the step-by-step migration plan
Available Commands
| Command | Description |
|---|
/rails-upgrade | Start the upgrade assistant |
| "Finish the upgrade" / "Clean up dual-boot" | Trigger the upgrade-cleanup plugin. Drops NextRails.next? branches and removes dual-boot scaffolding. |
| "Upgrade to Rails X.Y" | Generate reports from detection results |
| "Show app:update changes" | Preview configuration file changes |
| "Plan upgrade from X to Y" | Get multi-hop upgrade strategy |
Design Decisions & Best Practices
This skill implements the FastRuby.io upgrade methodology, which includes:
Dual-Boot Strategy
Run your application with two versions of Rails simultaneously using the next_rails gem. This allows you to test both versions during the transition and deploy backwards-compatible changes before the version bump.
See the dual-boot skill for setup, code patterns, CI configuration, and post-upgrade cleanup.
Sequential Upgrades Only
We never skip versions. Each Rails minor/major version introduces changes that build on previous versions. Skipping creates compound issues that are nearly impossible to debug.
✅ Correct: 6.0 → 6.1 → 7.0 → 7.1
❌ Wrong: 6.0 → 7.1 (skipping 6.1 and 7.0)
Deprecation-First Approach
Before upgrading:
- Enable deprecation warnings in your current version
- Fix all deprecation warnings
- Deploy those fixes to production
- Then bump the Rails version
This reduces the upgrade to a single Gemfile change.
What This Skill Doesn't Do
Be aware of these limitations: