RFC: use boolean columns instead of integers

The schema.rb created by migrations differs from the versioned schema.rb
file. This patch merges the generated schema file and adds migrations to
convert integer columns into boolean columns as needed.