caretdashcaret.com
Activerecord Enums Tradeoffs
If you’re using Activerecord Enums, it’s common to store the values that represent the enums as integers in the database. If you wanted more guarantees from the database, you’d st…