MySQL allows a value 0000-00-00for fields date, but ActiveRecordconsiders assignment to a value datewith this string as nil.
I have an outdated application that relies on this exact content of the field for the concept of "Never", so if the clientβs last payment date 0000-00-00, he acknowledges that he never paid.
Is it possible to override the ActiveRecord(correct) check for this field dateand write this value to the database without even polluting my hands?
Thank you for understanding.
source
share