Fix rails 4.0 issue with yaml_db.