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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---