Redmine を 1.3.0 から 2.0.0 にアップグレードしようとしていますが、データベースの移行に問題があります。コマンドを実行すると:
rake db:migrate RAILS_ENV=production
次のようなエラーが表示されます
rake aborted!
uninitialized constant RAILS_ENV
私のエラーログは次のとおりです。
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'
古い redmine で使用しているプラグインのリストは次のとおりです。
Google Apps プラグイン
Redmine コード レビュー プラグイン
Redmine Hudson プラグイン