Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use timestamps instead of booleans #436

Open
DrumsnChocolate opened this issue Oct 13, 2024 · 1 comment
Open

Use timestamps instead of booleans #436

DrumsnChocolate opened this issue Oct 13, 2024 · 1 comment

Comments

@DrumsnChocolate
Copy link
Contributor

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants