Permalink
Browse files

Merge pull request #10666 from YanhaoYang/master

Make "rails dbconsole" work with activerecord-postgis-adapter
  • Loading branch information...
carlosantoniodasilva committed Jun 26, 2013
2 parents 37bacd3 + 2f35f61 commit 51a5e906581351484489088d16ae5870d156c1d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/commands/dbconsole.rb
@@ -44,7 +44,7 @@ def start
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"]

0 comments on commit 51a5e90

Please sign in to comment.