title: RAILS_ENV is not working as expected. How to set the environment?
body: <p>I'm configuring a new app in rails5 on my localhost and am having some trouble establishing my environment.  I set my environment variable to "development" but whenever I run <code>rake db:drop</code> it says the following</p>
  
  <pre><code>ActiveRecord::ProtectedEnvironmentError: You are attempting to run a destructive action against your 'production' database.
  If you are sure you want to continue, run the same command with the environment variable:
  DISABLE_DATABASE_ENVIRONMENT_CHECK=1
  </code></pre>
  
  <p>However my environment is set to development and not production:</p>
  
  <pre><code>sam$ printenv | grep RAILS_ENV
  RAILS_ENV=development
  </code></pre>
  
  <p>What am I forgetting?</p>
  
  <p>Many thanks for taking a look at this.</p>
  
  <p>EDIT: My yaml looks like this</p>
  
  <pre><code>default: &amp;default
    adapter: mysql2
    encoding: utf8
    username: ZZZZZZZ
    database: YYYYYYY
    host: 127.0.0.1
    socket: /tmp/mysql.sock
    password: XXXXXXXXX
  
  development:
    &lt;&lt;: *default
    reconnect: true
  </code></pre>