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:
parent
53c1cd6cde
commit
bf2ee89659
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue