aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/dbconsole.rb
diff options
context:
space:
mode:
authorBrian Lopez <seniorlopez@gmail.com>2010-05-04 13:46:52 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2010-05-04 15:47:08 -0700
commitbf2ee896594f389b378fb1f1351f6f315b1a4498 (patch)
tree64b6de1c381e54be4adf6e96381f230ee1bf4f3a /railties/lib/rails/commands/dbconsole.rb
parent53c1cd6cde6e34996ff85960f06749b681200908 (diff)
downloadrails-bf2ee896594f389b378fb1f1351f6f315b1a4498.tar.gz
rails-bf2ee896594f389b378fb1f1351f6f315b1a4498.tar.bz2
rails-bf2ee896594f389b378fb1f1351f6f315b1a4498.zip
add support for mysql2 adapter to dbconsole
[#4532 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'railties/lib/rails/commands/dbconsole.rb')
-rw-r--r--railties/lib/rails/commands/dbconsole.rb4
1 files changed, 2 insertions, 2 deletions
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