mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
"rails dbconsole t" must not load "production" but "test"
[#6293 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
committed by
Santiago Pastorino
parent
57bc25c5f8
commit
2e11213d62
@@ -119,5 +119,5 @@ 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
|
||||
ENV['RAILS_ENV'] = %w(production development test).detect {|e| e =~ /^#{env}/} || env
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user