I use Heroku for my application and it requires PostgreSQL, but you can still use SQLite3 for development. Since Heroku strongly recommended not having 2 different databases, I decided to upgrade to PostgreSQL for development. I installed gem pg , and also went to the official PostgreSQL website to get the Windows installer, and also modified my database.yml . During installation, it requires a password for PostgreSQL, so I created it. I had to change the pg_hba.conf using md5 to trust in order to get past: fe_sendauth: no password supplied when trying to create a database.
# TYPE DATABASE USER ADDRESS METHOD
After getting rid of this, now I get the following:
$ rake db:create (in C:/app) FATAL: role "User" does not exist Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"utf8", "database"=>"app_test", "pool"=>5, "username"=>nil, "password"=>nil}
I still have my development.sqlite3 and text.sqlite3 present, maybe a problem? What should be done?
Here is my full meaning: https://gist.github.com/1522188
ruby ruby-on-rails postgresql ruby-on-rails-3
LearningRoR Dec 26 '11 at 22:05 2011-12-26 22:05
source share