Reputation: 6659
I would like to have a single database.yaml as part of a project two separate teams are working on. While the test and production sections are the same, the development section is different for the two teams. Is there a way I can do this using a local environment variable?
Upvotes: 0
Views: 41
Reputation: 160321
You could create your own configuration mechanism (e.g., per-user, per-machine, etc.) or just create a new configuration and set it via RAILS_ENV
:
RAILS_ENV=dev1 rails s # Or rails c etc, to run the "other" dev config...
RAILS_ENV=dev2 rails s
Upvotes: 1