[Rails] Re: best way to store this data in the database

2009-01-05 Thread tonypm
I tend these days to always use the full descriptive words - memory implications are small, but it is easier to directly display the value than have code to expand it wherever it is used. It also tends to make the code logic easier to follow. tonypm

[Rails] Re: best way to store this data in the database

2009-01-05 Thread Marnen Laibow-Koser
On Jan 5, 3:22 pm, tonypm tonypmar...@hotmail.com wrote: I tend these days to always use the full descriptive words - Definitely not in a case like this. The set of three values here maps *perfectly* to SQL-style 3-valued logic -- so use it! Store this as a boolean value. A larger set of