For a Rails 3.0 Todo app, I have a Tasks model with a Status field. What\'s the best way to store the Status field data (field type) and still display a human-r
I prefer to store "normal", "active", .. "completed" as string in the table because:
These days, I tend to decouple Rails constants from the database as much as I can. There are always some PHP/MSSQL/??DBA folks around us (who may not love Rails as much as we do ;-)
So, the answer is not integer nor enum (but a varchar ;-)