You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Back boolean concepts like deleted? or published? with timestamps columns in the
database `deleted_at`, `published_at`.
This can be valuable when you need to know **when** something took place.
[1]: https://github.com/calebhearth/time_for_a_boolean
Copy file name to clipboardExpand all lines: rails/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
- Use private instead of protected when defining controller methods.
4
4
- Name date columns with `_on` suffixes.
5
5
- Name datetime columns with `_at` suffixes.
6
+
- Back boolean concepts like deleted? or published? with timestamps columns in the database `deleted_at`, `published_at`.
7
+
This can be valuable when you need to know **when** something took place. [Time for A Boolean](https://github.com/calebhearth/time_for_a_boolean) provides a nice interface for this.
6
8
- Name time columns (referring to a time of day with no date) with `_time`
0 commit comments