I am able to create databases (development, test, and production
databases) as follows
[email protected]:~$ su - postgres
[email protected]:~$ psql
postgres=# create DATABASE book_shelf_development;
postgres=# create DATABASE book_shelf_test;
postgres=# create DATABASE book_shelf_production;
But when I try to create same databases using the command
‘rake db:create:all’, I am getting an error massage saying ‘FATAL:
Ident authentication failed for user “postgres”’. And none of the
databases are created.
And also after creating databases as shown above, I created migration
files and I am able to do rake db:migrate for the same database.yml
Can you please help me why ‘rake db:create:all’ is not working?