Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"database configuration does not specify adapter" error with PG gem in Rails 3.2

Upon running "rake db:migrate", I'm getting an "database configuration does not specify adapter" error.

Here's my database.yml:

development:
  adapter: postgresql
  database: development
  username: ##########
  password: ##########
  host: localhost
  pool: 5
  timeout: 5000

My Gemfile lists:

gem 'pg'
like image 377
Dan Avatar asked Nov 28 '22 03:11

Dan


1 Answers

Figured out what it was. I skyped the database.yml to myself, and it inserted a ton of invisible characters which prevented the YAML from being read.

like image 99
Dan Avatar answered Jun 28 '23 18:06

Dan