yamldb / yaml_db

Rails plugin for a database-independent dump format, data.yml .......... Seeking new maintainers! See https://github.com/yamldb/yaml_db/issues/143
https://rubygems.org/gems/yaml_db
949 stars 200 forks source link

Include "TRUE" string in SerializationHelper::convert_boolean #57

Open jamuc opened 11 years ago

jamuc commented 11 years ago

I'm currently testing H2 to MySQL migration. Works fine, except the boolean values are all false when migrating from H2 to MySQL. The reason is simple. H2 databases write boolean values as strings with capital letters (e.g "TRUE").

Adding the "TRUE" String to the ::convert_boolean method fixes this problem.

Signed-off-by: Jason Franklin franklin@equinux.com

nubbel commented 9 years ago

This is still relevant for us. I updated the PR to move the change to the new location of the serialization_helper.rb and created a spec.