Reputation: 163
If I run rake db:migrate I get the following error: rake aborted! undefined method `symbolize_keys' for "adapter:postgresql host:localhost database:mailerDevelopment":String
The development entry in my database.yml file looks like this:
development:
adapter:postgresql
host:localhost
database:mailerDevelopment
Upvotes: 1
Views: 2563
Reputation: 13077
This error is happening because the content of the database.yml file is not valid YAML.
In YAML the space after separators like :
is mandatory. Reference: Collections section in the YAML documentation
So change the content of the file as follows (with spaces after the :
):
development:
adapter: postgresql
host: localhost
database: mailerDevelopment
Upvotes: 3