Created
July 12, 2011 15:32
-
-
Save nickyp/1078214 to your computer and use it in GitHub Desktop.
database-yaml-per-git-sha
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
database: <%= File.basename(RAILS_ROOT) %>_<%= `git symbolic-ref | |
HEAD`.match(/.*\/(.*)\n/)[1] %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment