title: Rails: permission denied for relation schema_migrations
body: <p>I'm trying to setup a local production environment for a Ruby on Rails web application. I can run the application with <code>rails server</code> command, which gives the development environment.</p>
  
  <p>The production environment I'm trying to set up is purely local and I've followed this tutorial for setting it up with apache 2: <a href="https://www.digitalocean.com/community/tutorials/how-to-setup-a-rails-4-app-with-apache-and-passenger-on-centos-6">https://www.digitalocean.com/community/tutorials/how-to-setup-a-rails-4-app-with-apache-and-passenger-on-centos-6</a></p>
  
  <p>However when I go to the page of my application I get the following error:</p>
  
  <pre><code>PG::InsufficientPrivilege: ERROR: permission denied for relation schema_migrations : SELECT "schema_migrations".* FROM "schema_migrations"
  </code></pre>
  
  <p>in my database.yml I have these settings for development and production:</p>
  
  <pre><code>adapter: postgresql
  database: whiteboard
  username:
  password:
  pool: 5
  timeout: 5000
  </code></pre>
  
  <p>I'm not allowed to change these settings, no matter what.</p>
  
  <p>Is there any way to fix this? (if yes, step by step please)</p>