Scotch
Scotch

Reputation: 163

rake aborted! undefined method `symbolize_keys' for "adapter:postgresql host:localhost database:mailerDevelopment":String

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

Answers (1)

Prakash Murthy
Prakash Murthy

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

Related Questions