【发布时间】:2012-07-13 11:55:04
【问题描述】:
我正在尝试将我的 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 插件
【问题讨论】:
标签: ruby-on-rails ruby redmine