Last active
May 31, 2017 17:15
-
-
Save dillonhafer/dc42dc9b158252de940432d2079a46b2 to your computer and use it in GitHub Desktop.
Dynamic Database YAML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% branch = `git rev-parse --abbrev-ref HEAD`.match(/(PHI-\d+)/).try(:captures).try(:first) || "development" %> | |
default: &default | |
adapter: postgresql | |
encoding: unicode | |
pool: 5 | |
timeout: 5000 | |
variables: | |
statement_timeout: 15000 | |
development: | |
<<: *default | |
database: <%= "phishing_#{branch}" %> | |
test: &test | |
<<: *default | |
database: phishing_test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment