Created
November 14, 2013 22:44
-
-
Save cupakromer/7475654 to your computer and use it in GitHub Desktop.
Dynamic database change
This file contains 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
# Check this into the features that have different schemas as you develop | |
# Before you merge to master you either comment this out or remove the file | |
export DATABASE_NAME=cool_story_bro |
This file contains 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
development: | |
adapter: postgresql | |
encoding: unicode | |
database: <%= ENV['DATABASE_NAME'] || myapp_development %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment