Tidy ai/ script shortcuts: add ai/seed, rename ai/db-migrate to ai/migrate#1589
Merged
Conversation
Bring the ai/ script names in line with the directory's bare-verb convention: db-migrate's prefix was redundant next to console, server, seed, and friends. Add an ai/seed wrapper for db:seed:dev so loading the full per-workspace dev dataset is a first-class shortcut alongside the others. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
maebeale
commented
Jun 7, 2026
| # Load the full dev sample dataset into the workspace database. | ||
| # Sourcing .ruby-env sets WORKSPACE_PORT so seeds land in the per-workspace DB | ||
| # (awbw_development_$PORT) the app actually serves — not the unsuffixed default. | ||
| set -euo pipefail |
Collaborator
Author
There was a problem hiding this comment.
🤖 From Claude: ai/seed sources .ruby-env, which aliases Conductor's CONDUCTOR_PORT to WORKSPACE_PORT — so seeds land in awbw_development_$WORKSPACE_PORT (the DB the app serves) instead of the unsuffixed default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
ai/db-migrate→ai/migrate. Thedb-prefix was the odd one out inai/— every other script uses a bare verb/noun (console,routes,server,test,seed). The prefix added no clarity for a dev shortcut, so this brings the name in line with the convention and reads naturally asai migrate.ai/seed. A first-class wrapper forrails db:seed:dev, so loading the full dev sample dataset into the per-workspace DB is a shortcut alongside the others. Sources.ruby-env, so it lands data inawbw_development_$WORKSPACE_PORT(the DB the app actually serves) rather than the unsuffixed default.CLAUDE.md,.github/copilot-instructions.md,CONTRIBUTING.md, andai/README.mdto match.Notes
git mvpreserves history on the rename.db:seed:devalready exists onmain(lib/tasks/dev.rake); this just adds the convenience wrapper and the rename.🤖 Generated with Claude Code