Permalink
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 <santiago@wyeworks.com>
  • Loading branch information...
1 parent 5dd803e commit 8a85f64abffde29ddfd521d63d566f98796ae400 @amatsuda amatsuda committed with spastorino Dec 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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"]

0 comments on commit 8a85f64

Please sign in to comment.