title: rails console unable to connect to database in staging environment
body: <p>Using capistrano I'm deploying my Rails 4 app under the environment name "staging". When I ssh onto the server and run <code>rails console</code>, any ActiveRecord queries I do come up with <code>no such table</code>. So I check my <code>Rails.env</code> and sure enough it reads <code>development</code> instead of <code>staging</code>. But even running <code>rails console staging</code>, it does set <code>Rails.env</code> to "staging", but still the ActiveRecord queries say no such table. The app itself is running fine (under Apache and Passenger), but for some reason the rails console is unable to connect to the db. </p>
  
  <p>I've reverted back to when I knew it was working and am still seeing the error, which tells me it is a configuration change i must've made on the server as opposed to a change to the rails app code or capistrano deploy config.</p>