Trim comments to the non-obvious why
Drop narration, history and restated-code comments across the repo, keep short ones for security boundaries, upstream quirks and ordering constraints, and record the convention in CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -9,10 +9,7 @@ import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// SeedDatabase populates an empty database with demo content for local
|
||||
// development. It is called from main only when SEED_DB=true, which
|
||||
// docker-compose.dev.yml sets; it must never run in production because it
|
||||
// creates an admin account with the password "password".
|
||||
// SeedDatabase is dev only: it creates an admin with password "password".
|
||||
func SeedDatabase(db *gorm.DB) {
|
||||
// "Any user exists" is the whole idempotency check — if the users table
|
||||
// has a row, nothing is seeded, even if the other tables were emptied.
|
||||
|
||||
Reference in New Issue
Block a user