2
I’ve been trying to convert a rails app in sqlite for postgres in order to use it on Heroku, following this tutorial from Heroku himself: https://devcenter.heroku.com/articles/sqlite3
Only when I’m going to create a DB using the rake db:create
, I have this error message:
rake db:create
FATAL: role "caiograco" does not exist
("caiograco" is my username on Linux. I don’t know how it went there)
Role is how a user is treated in Postgresql. If Voce does not define the user at the time of execution
psql
he understands that it is to use the user who executed it. You must pass the user information owner or who owns permission on the basis.– Marcos Regis