ruby on rails - Boolean issue in rails3 / SQLite -
i'm using sqlite3-ruby, 1.2.5 rails 3
i don't know why, in sqlite database, booleans stored t/f instead of 1/0. shouldn't 1/0?
“sqlite not have separate boolean storage class. instead, boolean values stored integers
0(false) ,1(true).” (from sqlite website)
when value in database "t", in rails gets converted false. right in rails booleans displayed false.
Comments
Post a Comment