Rails bitwise, enum with super powers
Charly Poly
104

Hi Oleh Novosad,

The migration is not in the article, but it’s a simple integer field added using Rails migration, a ‘payment_modes_value’ column in this case.

By using integer, the maximum numbers of values (in mapping) will be 32 (maximum value for a SQL int field), but we are working on a patch to support String (SQL TEXT) values (then maximum values will be ruby BigFixnum capacity)

I hope this answer your question !