"Bitfields for ActiveRecord": store low-cardinality columns in a separate table for vastly more flexibility and better performance.
Andrew Geweke
MIT