I want to do a “raw” update an attribute on a ActiveRecord model
without Rails doing type checks on the underlying column in my db.
In other words - I want the create/update equivalent of
“attributes_before_type_cast” which I can use when i read the column.
In my particular example I would like to set a DATE column in Mysql to
“1970-00-00” for example. Mysql lets me set this value in a DATE
column. When I try to set this value in Rails, the column gets nulled
out.
Appreciate any help on this
–Mats