If you have a table with recorded created_at
and updated_at
, it's very likely that at some point you will need to sort query results by updated_at
column. For this reason this is worth having updated_at
defined as NOT NULL and set whenever new row is inserted.