我正在尝试将我的 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 中使用的插件列表:
谷歌应用插件
Redmine 代码审查插件
Redmine Hudson 插件