Add vagrant superuser to postgresql #4

merged 1 commit into from Aug 24, 2012

2 participants


I got thi error when trying to run the ActiveRecord tests with the postgresql adapter in the vagrant box:

vagrant@rails-dev-box:/vagrant/rails/activerecord$ bundle exec rake test_postgresql
Using postgresql
/vagrant/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:1466:in `initialize': FATAL: role "vagrant" does not exist (PG::Error)

The Contributing to Ruby on Rails guide recommends creating a PostgreSQL superuser with your shell user, and doing that fixes the issue.

Ruby on Rails member


@fxn fxn merged commit 333dbb7 into rails:master Aug 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment