I have followed this really helpful tutorial:
http://blog.willj.net/2011/05/31/setting-up-postgresql-for-ruby-on-rails-development-on-os-x/
I would really like t
Actually you don't need to create a new user each time you create a new rails app.
All you have to do is create the new application and change the username
in your database.yml
development:
adapter: postgresql
encoding: unicode
database: newapp_development
pool: 5
username: #your username
password:
...
than just:
rake db:create:all
On a unix based system:
sudo -u postgres createuser -d -R -P APPNAME
sudo -u postgres createdb -O APPNAME APPNAME
You can create a script and put it somewhere in your $PATH if you can't remember.