What's new in edge Rails: Active Record enums
Declare an enum attribute where the values map to integers in the database, but can be queried by name.
Declare an enum attribute where the values map to integers in the database, but can be queried by name.