Change sqlite3 boolean serialization to use 1 and 0
#29699

lugray wants to merge lugray:represent_boolean_as_integer into rails:master

We do not currently have an analysis of these two commits