CCAR-F practice › Claude Code Configuration & Workflows · Question 55 of 105
Claude Code Configuration & Workflows
Each of a platform's 14 services keeps its SQL migrations in its own db/migrations/ directory, for example services/billing/db/migrations/. You want migration conventions to apply automatically to every one of them. Which configuration is most appropriate?
Show answer and explanation
Answer: D — A rule file in .claude/rules/ with paths: ["**/db/migrations/*.sql"]
The leading **/ matches db/migrations/ at any depth, so one rule file covers all 14 services. (A) is anchored at the repository root, where no db/migrations/ directory exists. (B) covers only the billing service. (C) works but creates 14 copies to keep in sync, which is what path-scoped rules avoid.
Keep going
More Claude Code Configuration & Workflows questions
- Storybook story files (*.stories.tsx) sit next to their components in about 60…
- A production error's stack trace points to a missing null check on line 88 of…
- During a multi-phase task (find every use of a deprecated config flag, design a…
- You used plan mode to investigate migrating from one ORM to another across 48 files. The…
- You asked Claude to convert legacy log lines into structured JSON events. Your prose…