Change the datatype of an attribute?

Hey everyone

I’m building an application that is using a mySQL SET datatype sad

The problem is that ActiveRecord thinks this is a date! Here’s the
relevant output from Model.columns:

#<ActiveRecord::ConnectionAdapters::MysqlColumn:0x351b488
@primary=false, @scale=nil, @sql_type=“set(‘Any’,‘Grade School’,‘High
School’,‘Some College’,‘Associates Degree’,‘Bachelors Degree’,‘Some Grad
School’,‘Masters Degree’,‘PhD Candidate’,‘PhD’)”, @precision=nil,
@default=nil, @limit=0, @type=:date, @name=“educations_allowed”,
@original_default="", @null=false>

I put into bold where its defining the type of this set as a :date.
Where can I override this behavior so my program stops casting the
strings I need to put there into dates?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs