gregnavis / active_record_doctor

Identify database issues before they hit production.
MIT License
1.72k stars 56 forks source link

Check timestamp columns (created_at, updated_at) are NOT NULL #186

Open jdufresne opened 2 weeks ago

jdufresne commented 2 weeks ago

Once the timestamps columns are established on a table, they might as well be NOT NULL to enforce their existence. All ActiveRecord operations set these values so they will always exist under normal usage.

Fixes #184

fatkodima commented 1 week ago

Lgtm 👍