Deal with Rails 4 setting MySQL strict mode