Skip to content

Instantly share code, notes, and snippets.

@tatsuosakurai
Created August 13, 2014 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatsuosakurai/8f87ffe58a71ee0c5176 to your computer and use it in GitHub Desktop.
Save tatsuosakurai/8f87ffe58a71ee0c5176 to your computer and use it in GitHub Desktop.
grit sample
<% repo = Grit::Repo.new(Rails.root).head.name rescue nil %>
development:
adapter: mysql2
encoding: utf8
database: hoge_development<%= "_#{repo}" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment