Forum: Ruby on Rails MySQL set data type

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
elliotlarson (Guest)
on 2007-05-17 08:57
(Received via mailing list)
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 topic is locked and can not be replied to.