How to Fix PostgreSQL Duplicate Key Violation on Unique Constraint (users_email_key)
DB Migration Checklist
- Does this migration add a UNIQUE constraint?
- Is there a corresponding ON CONFLICT handler in the application layer?
- Is there an integration test covering the duplicate-key path?