Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 368 Bytes
case ENV['DB']
when "mysql"; gem "mysql2", "0.3.10"
when "sqlite"; gem "sqlite3"
when "postgres"; gem "pg", "~> 0.12.2"
def gem(*args)
# Override 'gem' method to block any other database gems in the 'real' Gemfile
super unless %w(pg sqlite3 mysql2).include?(args.first)
# Eval Gemfile
eval(, 'Gemfile')), binding)
Jump to Line
Something went wrong with that request. Please try again.