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 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. A prospect ERB and W Using a combination of Yavarn variables to be to, for example: Then you can do any of the following: Your .bashrc rake db: create: all worked with no problems.
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
Development: Username: & lt;% = ENV [ 'USERNAME']% & gt; Password: & lt;% = ENV ['password']%> Adapter: Postgrascill encoding: Unicode Database: Volatility_ Development Pool: 5 Timeout: 5000 Host: Localhost
USERNAME = Bob PASSWORD =
Export USERNAME = Bob Exports PASSWORD = Incognito
Comments
Post a Comment