The fileCreated hook was not reliably enforced. Switch to postToolUse on write operations so the check fires inline immediately after any file write, making it impossible to skip. The prompt self-filters to only act when the written file is in backend/migrations/.