title: ActiveRecord::SubclassNotFound
body: <p>I'm trying to upgrade my redmine from 1.3.0 to 2.0.0, but I have problems with the database migration. When I run the command:</p>
  
  <pre><code>rake db:migrate RAILS_ENV=production
  </code></pre>
  
  <p>it shows an error like</p>
  
  <pre><code>rake aborted!
  uninitialized constant RAILS_ENV
  </code></pre>
  
  <p>My error log is:</p>
  
  <pre><code>ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: 'GoogleAppsAuthSource'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite AuthSource.inheritance_column to use another column for that information.):
  app/models/user.rb:139:in `try_to_login'
  app/controllers/account_controller.rb:143:in `password_authentication'
  app/controllers/account_controller.rb:138:in `authenticate_user'
  app/controllers/account_controller.rb:30:in `login'
  </code></pre>
  
  <p>Here is the list of plugin that I am using in my old redmine:</p>
  
  <ol>
  <li><p>Google Apps plugin</p></li>
  <li><p>Redmine Code Review plugin</p></li>
  <li><p>Redmine Hudson plugin</p></li>
  </ol>