ohmage / server

The ohmage server application.
37 stars 25 forks source link

fix use of default enum ordinal value #815

Closed jshslsky closed 8 years ago

jshslsky commented 9 years ago

The default enum ordinal is saved to the db for

This is a non-exhaustive list.

Usage of the default ordinal value is poor practice because it tightly couples the app's representation of the data the actual data stored in the db. If an enum value is ever added to the app for any of these entities, it could cause off-by-one errors when interpreting the data from the db.