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

make "rails dbconsole" work with activerecord-postgis-adapter

This commit is contained in:
YanhaoYang 2013-05-17 21:12:44 +08:00
parent 677b64fcd5
commit 2f35f613ba

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"]