user577808
user577808

Reputation: 2527

Rails with Postgres - Roles

I'm using PG for Rails development. Every time I create a new app, it creates a default database.yml file that sets the "username" to the name of the app. I have to go in and chnage the username for the DB to a username that already exists, or create that role on PG. I'd like to skip this if possible.

Is there any way to configure PG to allow interaction from any role, despite the name, so I can disregard this?

Upvotes: 0

Views: 212

Answers (1)

Ihor Romanchenko
Ihor Romanchenko

Reputation: 28541

There is no way to configure postgres to allow connections with any role with default authentication method.

There may be a way to map app names to DB roles. Fro details read this http://www.postgresql.org/docs/current/static/auth-methods.html to find suitable auth methods.

Upvotes: 2

Related Questions