ActiveRecord::SubclassNotFound

Je suis en train de mettre à jour mon redmine de 1.3.0 2.0.0, mais j'ai des problèmes avec la migration de base de données. Lorsque je lance la commande:

rake db:migrate RAILS_ENV=production

il affiche une erreur comme

rake aborted!
uninitialized constant RAILS_ENV

Mon journal d'erreur est:

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'

Voici la liste des plugins que j'utilise dans mon ancien redmine:

  1. Google Apps plugin

  2. Redmine la Révision du Code du plugin

  3. Redmine Hudson plugin

S'il vous plaît aider moi

InformationsquelleAutor zam | 2012-07-13