Set timestamp columns to be NOT NULL where we depend on their values

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Rails manages created_at and updated_at columns in tables for us automatically, most of the time, but on occasion - as with gitlab-ce#20568 - rows may be created with NULL values. This breaks a lot of code paths that expect these columns to always have values.

I propose that we change these columns to be NOT NULL, since we depend so strongly on them being so in our code. Input validation is great!

Edited Sep 13, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading