This answer applies only to SQLite.
If you want to have Boolean in the model you need to use TEXT (or other type which maps to TEXT storage class http://www.sqlite.org/datatype3.html) in the database. True maps to “1” and false to “0” in the database.
If you want to use BOOL in the SQLite database you have to use Integer
in the model.