dazuma/activerecord-postgis-adapter — pull request #52 by adamtrilling (2013-03-02 22:17:25+00:00)
Title: Maintain superuser permissions during database creation in rails4

In postgis_database_tasks.rb under Rails 4, there were a couple of calls to establish_connect() that didn't provide su_username and su_password as the username and password. As a result, the connection would revert to the normal user, and CREATE EXTENSION would fail if the normal user wasn't a superuser. I've added the configuration params where appropriate.