I'm trying to get started with Postgres on Rails apps on Mac. I made a new rails app called "shawsome" and in the database.yml file it created this
development:
adapter: postgresql
encoding: unicode
database: shawsome_development
pool: 5
username: shawsome
password:
But the server wouldn't run because there's no role for "shawsome." Rails just seemed to have inferred the username from the name of my app.
I looked at postgres documentation and it talks about CREATE USER command
CREATE USER jonathan;
However, when I tried to do CREATE USER, it said CREATE comment not found.
Can anyone tell me what I'm doing wrong?
Also, once it's in production (on Heroku) I'm assuming it will also need a username. Will that username remain the same? i.e. if it's configured on my machine, do I need to do anything extra on Heroku?