I already have a rails project then i installed Postgresql
and pgadmin III , I need to use posgresql in development instead of sqlite
and production to use heroku
, I followed the answer number two in this question Change from SQLite to PostgreSQL in a fresh Rails project because i just installed Postgresql
using synaptic center without making anything else , when i try to create a user i got an error:
createuser dexter
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) y
createuser: could not connect to database postgres: FATAL: role "dexter" does not exist