How to add a list of enumerations in an activerecord model?

I'm currently using simple_enum for fields like as_enum :title, { mrs: 0, mr: 1 } but now I need to have a list of enumerations : for example a field categories which may take several enumerated values. And I don't want to make a join :)

I looked several other gems but found nothing. Is there a simple solution for this ?

Thanks,

David

Answers


We often use a simple bit field for these kinds of values.


Need Your Help

Custom search tab in Windows start menu search with C#

c# wpf startmenu

I am interested to know how can I do the same thing that the apllication listed below does:

WARN/SoundPool sample 2 not READY

android

SoundPool works properly on Android 1.6 but when I run on 2.1 in the Emulator I am getting a "sample 2 not READY" error message everytime I try to play a sound.