MG10 — Prefer timestamptz to timestamp
Group: Migration safety · Auto-fixable: yes
timestamp (without time zone) stores wall-clock values that ignore the session
time zone, a frequent source of off-by-hours bugs. Use timestamptz, which stores
an absolute instant.
Example
Section titled “Example”bad: created_at timestampgood: created_at timestamptzConfigure
Section titled “Configure”Disable this rule in banshee.toml:
[lint]exclude = ["MG10"]Or silence one line with -- noqa: MG10. See Linting.