diff options
author | Brian Lopez <seniorlopez@gmail.com> | 2010-05-04 13:46:52 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-05-04 15:47:08 -0700 |
commit | bf2ee896594f389b378fb1f1351f6f315b1a4498 (patch) | |
tree | 64b6de1c381e54be4adf6e96381f230ee1bf4f3a /railties | |
parent | 53c1cd6cde6e34996ff85960f06749b681200908 (diff) | |
download | rails-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')
-rw-r--r-- | railties/lib/rails/commands/dbconsole.rb | 4 |
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 |