Imported from seed-hypermedia/seed (
backend/storage/AGENTS.md). Install upstream withnpx skills add seed-hypermedia/seed --skill storage. Copyright stays with the author.
Backend Storage Rules
- Applies to
backend/storage/**. backend/storage/schema.sqlis the schema source of truth.- When schema changes, update migrations in
backend/storage/storage_migrations.goand follow the guidance comment in that file. - After schema or migration changes, run
./dev gen //backend/...from the repository root. - Validate schema/migration changes against full CI locally before pushing:
npx @redwoodjs/agent-ci run -w .github/workflows/test-go.yml -p. Seedocs/local-ci-with-agent-ci.md. - Be careful to introduce new migrations where a reindex is required and embeddings need to be re-computed. CPU-only servers will take longer to process them again, consuming a lot of CPU along the way.