and this was causing it to cast values to/from tinyint values (Fixnum) rather than to/from booleans.
I've stopped it from looking up native_database_type for booleans, and this seems to have fixed it. Also attempted to cover mysql2 in the tests (works locally, we'll see whether it works with travis...).
I encountered some problems when using boolean attributes with a mysql2 database adapter. Seemed to be because:
and this was causing it to cast values to/from tinyint values (Fixnum) rather than to/from booleans.
I've stopped it from looking up
native_database_type
for booleans, and this seems to have fixed it. Also attempted to cover mysql2 in the tests (works locally, we'll see whether it works with travis...).