Permalink
Browse files

add support for mysql2 adapter to dbconsole

[#4532 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent 53c1cd6 commit bf2ee896594f389b378fb1f1351f6f315b1a4498 @brianmario brianmario committed with jeremy May 4, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/commands/dbconsole.rb
@@ -55,7 +55,7 @@ def find_cmd(*commands)
end
case config["adapter"]
- when "mysql"
+ when /^mysql/
args = {
'host' => '--host',
'port' => '--port',
@@ -114,4 +114,4 @@ def find_cmd(*commands)
# Has to set the RAILS_ENV before config/application is required
if ARGV.first && !ARGV.first.index("-") && env = ARGV.first
ENV['RAILS_ENV'] = %w(production development test).find { |e| e.index(env) } || env
-end
+end

0 comments on commit bf2ee89

Please sign in to comment.