I'm having problems working with a mysql bit in Rails and ActiveRecord. We store a bit for the published-state of Localities.
`published` bit(1) NOT NULL
I scaffolded it as published:binary in rails.
Locality.first.publishedreturns "\x01".
How do I get rails to treat this field as a boolean?
There is a staled Ticket but hacking ActiveRecord is not really an option. https://rails.lighthouseapp.com/projects/8994/tickets/6102-activerecord-boolean-support-with-bit1-mysql-data-type