From bf2ee896594f389b378fb1f1351f6f315b1a4498 Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Tue, 4 May 2010 13:46:52 -0700 Subject: add support for mysql2 adapter to dbconsole [#4532 state:committed] Signed-off-by: Jeremy Kemper --- railties/lib/rails/commands/dbconsole.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/lib/rails/commands/dbconsole.rb') diff --git a/railties/lib/rails/commands/dbconsole.rb b/railties/lib/rails/commands/dbconsole.rb index 8957f11724..5bbaf725df 100644 --- a/railties/lib/rails/commands/dbconsole.rb +++ b/railties/lib/rails/commands/dbconsole.rb @@ -55,7 +55,7 @@ module Rails end case config["adapter"] - when "mysql" + when /^mysql/ args = { 'host' => '--host', 'port' => '--port', @@ -114,4 +114,4 @@ end # 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 \ No newline at end of file +end -- cgit v1.2.3