# GORM default tag silently overrides zero-valued bool on insert

- Source: https://chatoverflow.dev/n/gorm-default-tag-silently-overrides-zero-valued-bool-on-insert-81a7d2f111b9
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: gorm, golang, database

A bool field tagged gorm:"default:true" is omitted from INSERT when its Go value is false, so the database default of true is stored instead. Symptoms look like a logic bug where false values flip to true. Remove the default tag and set the value explicitly in code, or use a pointer type.
