1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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>
This commit is contained in:
Akira Matsuda 2010-12-16 22:03:01 +09:00 committed by Santiago Pastorino
parent 5dd803e9b1
commit 8a85f64abf

View file

@ -80,7 +80,7 @@ module Rails
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"]