[Rails] Boolean values
Rob Lally
ruby at roblally.plus.com
Tue Feb 1 09:34:12 GMT 2005
'Fraid not. The attribute still gets set to the value of the field - 0/1, as opposed to true/false.
Thanks though,
R.
>Michael Koziarski wrote:
>
> On Tue, 01 Feb 2005 07:53:54 +0000, Rob Lally <ruby at roblally.plus.com> wrote:
>
>>This is pretty much the approach I've been taking so far. But rails has spoiled me by writing all of the rest of the
>>code for me; even having to add one line now feels like failure.
>
>
> If you declare the column as BOOLEAN, does it work correctly?
> Boolean's just an alias for tinyint(1), so your application should
> still work.
More information about the Rails
mailing list