ActiveRecord Custom Types

In developing bracket-lab, I needed a 1-indexed bit field of 63 bits, stored as an unsigned 63-bit value in an int64 column. ActiveRecord’s custom types made this clean.