1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

add support for mysql2 adapter to dbconsole

[#4532 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
Brian Lopez 2010-05-04 13:46:52 -07:00 committed by Jeremy Kemper
parent 53c1cd6cde
commit bf2ee89659

View file

@ -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
end