title: PG::UndefinedFile: ERROR: could not open extension control file
body: <p>After upgrading Postgres i am getting the following error when i try to migrate the database. </p>
  
  <pre><code>enable_extension(:postgis)
    SQL (17.2ms)  CREATE EXTENSION IF NOT EXISTS "postgis"
  PG::UndefinedFile: ERROR:  could not open extension control file "/usr/local/Cellar/postgresql/9.4.5/share/postgresql/extension/postgis.control": No such file or directory
  : CREATE EXTENSION IF NOT EXISTS "postgis"
     (0.3ms)  ROLLBACK
  rake aborted!
  StandardError: An error has occurred, this and all later migrations canceled:
  
  PG::UndefinedFile: ERROR:  could not open extension control file "/usr/local/Cellar/postgresql/9.4.5/share/postgresql/extension/postgis.control": No such file or directory
  : CREATE EXTENSION IF NOT EXISTS "postgis"/Users/harshamv/Sites/clink/db/migrate/20150812164615_enable_postgis.rb:3:in `change'
  -e:1:in `&lt;main&gt;'
  ActiveRecord::StatementInvalid: PG::UndefinedFile: ERROR:  could not open extension control file "/usr/local/Cellar/postgresql/9.4.5/share/postgresql/extension/postgis.control": No such file or directory
  : CREATE EXTENSION IF NOT EXISTS "postgis"
  /Users/harshamv/Sites/clink/db/migrate/20150812164615_enable_postgis.rb:3:in `change'
  -e:1:in `&lt;main&gt;'
  PG::UndefinedFile: ERROR:  could not open extension control file "/usr/local/Cellar/postgresql/9.4.5/share/postgresql/extension/postgis.control": No such file or directory
  /Users/harshamv/Sites/clink/db/migrate/20150812164615_enable_postgis.rb:3:in `change'
  -e:1:in `&lt;main&gt;'
  Tasks: TOP =&gt; db:migrate
  (See full trace by running task with --trace)
  </code></pre>
  
  <p>Not sure where to get started. Most other questions seem to related to Linux and when i tried to create the symlink also it did not work.</p>