Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use the new Resolver API in dbconsole

  • Loading branch information...
commit f6e363309a6cffacd6087f3a901c562265c3b2ed 1 parent facf2b4
@josevalim josevalim authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 railties/lib/rails/commands/dbconsole.rb
View
5 railties/lib/rails/commands/dbconsole.rb
@@ -83,9 +83,8 @@ def config
@config ||= begin
require APP_PATH
ActiveRecord::ConnectionAdapters::ConnectionSpecification::Resolver.new(
- ENV['DATABASE_URL'],
- (Rails.application.config.database_configuration || {})
- ).spec.config.stringify_keys
+ Rails.application.config.database_configuration || {}
+ ).resolve(ENV["DATABASE_URL"]).config.stringify_keys
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.