When I insert just a few fields to a table in a legacy database schema (via DataMapper), I'm getting the following:
DataObjects::SQLError "Field 'activationcode' doesn't have a default value"
I didn't actually specify a value for that field, but the underlying DB schema (MySQL) doesn't have one set neither. This doesn't actually cause an issue, it just means MySQL performs the insert but shows "Warnings: 1" after it's done. That warning is what is causing Rails to come to a grinding halt and rollback the insert, however. I know I could fix this field, but there are thousands more like it and I'm seeking to find out if there's a way to get DataObjects to just chill out and only error on actual SQL errors, not on warnings?
Rails 3.0.7, Ruby 1.9.2, DataMapper 1.1.0