Can’t convert Syck::DomainType into String

I just tried to set up a new environment for a rails site I’m working on and I was getting this error when trying to migrate the database.

can’t convert Syck::DomainType into String

I couldn’t find that error on google at all, but it turns out the password I was using had both a hash and a bang in it and the yaml parser didn’t like it.

All I needed to do to fix it was add single quotes around the password in my database.yml and it worked fine.

Comments

    benray11 |

    Thanks! Worked for me.

    Matt |

    Thanks, worked for me too!