121
You might as well timestamp it
(changelog.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
That sounds good until you realize you now have two sources of truth, do you trust
enabled
orenabled_date
? If you really want to go this routeenabled
should be a virtual field that checksenabled_date
in the background so you can have the boolean semantics but still keep a single field.I also used booleans a lot previously but since using Laravel I have come to enjoy the
updated_at
,created_at
anddeleted_at
fields that it automatically creates and I follow this format as well now if I need more.