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, [b]@type=:date[/b],
@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?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---