Skip to content

Instantly share code, notes, and snippets.

@tomnagengast
Last active August 9, 2017 19:09
Show Gist options
  • Save tomnagengast/ee66c4f5d4ff1d18fb90418578b8988c to your computer and use it in GitHub Desktop.
Save tomnagengast/ee66c4f5d4ff1d18fb90418578b8988c to your computer and use it in GitHub Desktop.
/**
* Consider using date fields instead of booleans.
* It works the same way, and now you know when the TRUE state happened.
*/
order.shipped = true
order.shipped = '2017-01-01 00:00:00'
subscription.cancelled = true
subscription.cancelled = '2017-01-01 00:00:00'
user.admin = true
user.admin = '2017-01-01 00:00:00'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment