mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Make script/dbconsole work again [#3690 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
committed by
Pratik Naik
parent
92f49b5f1e
commit
488b4c8c5c
@@ -34,8 +34,8 @@ module Rails
|
||||
abort opt.to_s unless (0..1).include?(ARGV.size)
|
||||
end
|
||||
|
||||
unless config = YAML::load(ERB.new(IO.read("#{@app.root}/config/database.yml")).result)[env]
|
||||
abort "No database is configured for the environment '#{env}'"
|
||||
unless config = YAML::load(ERB.new(IO.read("#{@app.root}/config/database.yml")).result)[Rails.env]
|
||||
abort "No database is configured for the environment '#{Rails.env}'"
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user