Gyanendra Singh
Gyanendra Singh

Reputation: 1005

SET data type in mysql with active record

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

Answers (3)

Tilo
Tilo

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

Nithin
Nithin

Reputation: 3699

Here is an alternative and try this as well.

Upvotes: 0

techvineet
techvineet

Reputation: 5111

No SET is not supported datatype in Rails.

Upvotes: 2

Related Questions