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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -