csvalpha / amber-api

https://csvalpha.nl
MIT License
4 stars 4 forks source link

Use timestamps instead of booleans #436

Open DrumsnChocolate opened 3 weeks ago

DrumsnChocolate commented 3 weeks ago

https://www.youtube.com/watch?v=G5_DLef7_9E worth a watch. Not sure if useful for us so let's discuss that here. I think we already do this in many places, my main question is: are there more places where this can be applied?

wilco375 commented 1 week ago

You can take a look at https://github.com/csvalpha/amber-api/blob/staging/db/schema.rb to see where we're using booleans in the database. I have not watched the video, but we also track changes using the paper_trail gem we're using. All model mutations are stored in the versions table.