This Rails plugin/gem allows you to generate virtual boolean attributes, which get saved in the database as a single bitset integer
Jan Lelis
gem "has_many_booleans", "~> 0.9.4"