Login
From:
Justin Weiss
(Uncensored)
subscribe
Creating easy, readable attributes with ActiveRecord enums - Justin Weiss
https://www.justinweiss.com/articles/creating-easy-readable-attributes-with-activerecord-enums/
links
backlinks
Roast topics
Find topics
Find it!
Imagine a question that can be either “pending”, “approved”, or “flagged”. Or a phone number that’s a “home”, “office”, “mobile”, or “fax” (if it’s 1982).