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:
parent
5dd803e9b1
commit
8a85f64abf
1 changed files with 1 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue