Skip to content

docs: document the upgrade path for existing installs - #24

Merged
gkosmo merged 1 commit into
masterfrom
docs/upgrade-path
Aug 13, 2026
Merged

gkosmo merged 1 commit into
masterfrom
docs/upgrade-path

Conversation

@gkosmo

@gkosmo gkosmo commented Aug 13, 2026

Copy link
Copy Markdown
Owner

Gap

The README only documented the fresh install path (rails generate rcrewai:rails:install). Running that against an app that already has the RcrewAI tables creates every table again and fails on duplicates — so existing users had no documented way to pick up the observation engine's two new migrations.

The mechanism already worked; it was simply undiscoverable. The engine exposes db/migrate by convention, so the standard Rails task copies what's missing:

rails rcrew_ai_rails:install:migrations
rails db:migrate

Note the task name is rcrew_ai_rails, not rcrewai_rails — an artifact of the AI acronym inflection, and not something anyone would guess. Verified against Engine.railtie_name.

Changes

Docs only — no code, no behavior change.

  • README — new "Upgrading an existing install" section: the correct task, a table of the two migrations 0.6.x → 0.7.0 adds and what each does, a note that both are additive, how to upgrade without enabling tracing (observation_enabled = false), and a caveat for hand-rolled schemas (likely, since the install generator never copied a migration before 0.7.0).
  • CHANGELOG — an ### Upgrading entry under 0.7.0 carrying the same guidance.

Verified

  • Engine.paths["db/migrate"] resolves, so install:migrations finds all 11 migrations and Rails copies only those the host lacks — an app on 0.6.x gets exactly 010 and 011.
  • Engine.railtie_name → rcrew_ai_rails, matching the documented command.
  • 206 examples, 0 failures.

The README only covered fresh installs. Existing users had no documented
way to pick up the observation migrations, and the engine task name
(rcrew_ai_rails, from the AI acronym inflection) is not guessable.
@gkosmo
gkosmo merged commit d825e4b into master Aug 13, 2026
3 checks passed
@gkosmo
gkosmo deleted the docs/upgrade-path branch August 13, 2026 08:37
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