MySQL set data type

I have a legacy database table I’m working with in Rails and one of
the fields is the MySQL set field type, like so:

userRoles set(‘CEO’,‘President’,‘Vice President’,‘Sales Manager’)

When I access the table with Active Record I only get an integer value
for this field, which I think is the raw format MySQL uses to store
the set values. Does anyone know how to retrieve this field type in
its human readable format, using Active Record?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs