title: Rails + PostGIS errors migrating database
body: <p>I was following Daniel Azuma's talk on <a href="http://confreaks.com/videos/856-railsconf2012-getting-down-to-earth-geospatial-analysis-with-rails" rel="noreferrer">geospatial analysis with rails</a> but I am having difficulty whenever I run <code>rake db:migrate</code> in the second project.</p>
  
  <p>The details of my setup are as follows: I am running Postgresql using <a href="http://postgresapp.com/documentation" rel="noreferrer">Postgres.app</a> which gives me version 9.1.3 of Postgres and 2.0.0 of PostGIS. I run into a few issues with the database.yml file, and running migrations. ( I have added the relevant gems and required their info in application.rb)</p>
  
  <p>My database.yml file looks like this:</p>
  
  <pre><code> development:
     adapter: postgis
     postgis_extension: true
     host: localhost
     encoding: unicode
     database: my_app_development
     pool: 5
     username: my_app
     password:
  </code></pre>
  
  <p>If I add the following line <code>schema_search_path: "public,postgis"</code> I get:</p>
  
  <pre><code> rake aborted!
   PG::Error: ERROR:  schema "postgis" does not exist
   : SET search_path TO public,postgis
  </code></pre>
  
  <p>If I remove that line I receive the following error when I try to migrate my database:</p>
  
  <pre><code>rake aborted!
  PG::Error: ERROR:  relation "geometry_columns" does not exist
  LINE 1: SELECT * FROM geometry_columns WHERE f_table_name='schema_mi...                       ^
  : SELECT * FROM geometry_columns WHERE f_table_name='schema_migrations'
  </code></pre>
  
  <p>Does anyone have an idea on how to fix these issues?</p>