Notes posted by GuskiS
RSS feed
GuskiS -
July 2, 2015
0 thanks
Usage with enum
With enum fields you must use integer values:
code
Model.update_all(type: Model.types[specific_type])
With enum fields you must use integer values:
Model.update_all(type: Model.types[specific_type])