Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Accept 'postgres' as a PostgreSQL driver name in dbconsole for non-AR…

… ORMs like DataMapper and Sequel

[#6180 state:committed]

Signed-off-by: Santiago Pastorino <>
  • Loading branch information...
commit 8a85f64abffde29ddfd521d63d566f98796ae400 1 parent 5dd803e
@amatsuda amatsuda authored spastorino committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/commands/dbconsole.rb
2  railties/lib/rails/commands/dbconsole.rb
@@ -80,7 +80,7 @@ def find_cmd(*commands)
exec(find_cmd('mysql', 'mysql5'), *args)
- when "postgresql"
+ when "postgresql", "postgres"
ENV['PGUSER'] = config["username"] if config["username"]
ENV['PGHOST'] = config["host"] if config["host"]
ENV['PGPORT'] = config["port"].to_s if config["port"]
Please sign in to comment.
Something went wrong with that request. Please try again.