setting up postgresql development in rails with multiple users in database.yml? -


I am in the process of migrating my SQL in Postgresql because I want to grow in the same environment of my production.

I installed the PostGrace and was able to set up my database yml file such as rake db: create: all worked with no problems.

However before I pushed it, I realized that the username and password of the postgresql database is only available on my computer ie I have made the login role on my computer when my friend, who is also developing on the application code, then I will not be able to create my username and password on my computer.

Does she want to create the same login role? Or is there a way to leave the username / password blank so that everyone can apply, who can apply? More importantly, what is the best practice for such a situation?

I am developing on windows and on Mac.

My database. IML: Username and password are left.

  development: adapters: postgrascill encoding: unicode database: volatility_discount pool: 5 timeout: 5000 host: localhost test: adapter: postgrascape encoding: unicode database: voltage_stest pool: 5 timeout: 5000 host: Localhost Production: Adapters: PostgreSQL encoding: Unicode Database: Validity_production pool: 5 timeout: 5000    

A prospect ERB and W Using a combination of Yavarn variables to be to, for example:

  Development: Username: & lt;% = ENV [ 'USERNAME']% & gt; Password: & lt;% = ENV ['password']%> Adapter: Postgrascill encoding: Unicode Database: Volatility_ Development Pool: 5 Timeout: 5000 Host: Localhost   

Then you can do any of the following:

  1. Like the server: USERNAME = Bob PASSWORD =
  2. Your .bashrc

      Export USERNAME = Bob Exports PASSWORD = Incognito      

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -