Reputation: 1005
I need to use the SET data type from mysql in a rails app. However, I don't find it in the list of supported data types or here. Is it a supported data type, and if yes how do I go about it?
Upvotes: 1
Views: 944
Reputation: 33732
The SET data type is not supported by Rails
The list of available datatypes in Rails is listed in this Stackoverflow answer:
Rails 4: List of available datatypes
there is a gem which try to work around this:
https://github.com/iangreenleaf/native_enum (I have not used this)
Upvotes: 0