Active Record Bit Fields

Use an integer field to store a set of booleans using bitwise logic

A long-lived project that still receives updates
Bit fields for ActiveRecord: This gem lets you use a single integer column in an ActiveRecord model to store a collection of boolean attributes (flags). Each flag can be used almost in the same way you would use any boolean attribute on an ActiveRecord object.