.ai/principles/baselines/database-fundamentals.md
db:gitlabcom-database-testing pipeline?"When a diff modifies or replaces an existing structure, always verify the current state from an authoritative source before flagging a discrepancy. Never infer the pre-change state solely from diff context — check the actual source of truth. For example:
down methods: verify the down schema against the actual pre-migration schema by
querying the local PostgreSQL database (\d tablename) or, if unavailable, reading the schema
from the base branch (git show master:db/structure.sql).