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

Merge pull request #10666 from YanhaoYang/master

Make "rails dbconsole" work with activerecord-postgis-adapter
This commit is contained in:
Carlos Antonio da Silva 2013-06-25 17:34:20 -07:00
commit 51a5e90658

View file

@ -44,7 +44,7 @@ module Rails
find_cmd_and_exec(['mysql', 'mysql5'], *args)
when "postgresql", "postgres"
when "postgresql", "postgres", "postgis"
ENV['PGUSER'] = config["username"] if config["username"]
ENV['PGHOST'] = config["host"] if config["host"]
ENV['PGPORT'] = config["port"].to_s if config["port"]