diff options
author | YanhaoYang <yanhao.yang@gmail.com> | 2013-05-17 21:12:44 +0800 |
---|---|---|
committer | YanhaoYang <yanhao.yang@gmail.com> | 2013-05-17 21:12:44 +0800 |
commit | 2f35f613badf9ed75140ce46b3bd28c4b9c86863 (patch) | |
tree | 94462199a1f15397355a5a46c898b35191b4e984 /railties/lib/rails | |
parent | 677b64fcd527529390e232ceedf8fa8bfac224e2 (diff) | |
download | rails-2f35f613badf9ed75140ce46b3bd28c4b9c86863.tar.gz rails-2f35f613badf9ed75140ce46b3bd28c4b9c86863.tar.bz2 rails-2f35f613badf9ed75140ce46b3bd28c4b9c86863.zip |
make "rails dbconsole" work with activerecord-postgis-adapter
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/commands/dbconsole.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/dbconsole.rb b/railties/lib/rails/commands/dbconsole.rb index 5914c9e4ae..3e4cc787c4 100644 --- a/railties/lib/rails/commands/dbconsole.rb +++ b/railties/lib/rails/commands/dbconsole.rb @@ -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"] |