小编zam*_*zam的帖子

的ActiveRecord :: SubclassNotFound

我正在尝试将我的redmine从1.3.0升级到2.0.0,但是我在数据库迁移方面遇到了问题.当我运行命令时:

rake db:migrate RAILS_ENV=production
Run Code Online (Sandbox Code Playgroud)

它显示了一个错误

rake aborted!
uninitialized constant RAILS_ENV
Run Code Online (Sandbox Code Playgroud)

我的错误日志是:

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'
Run Code Online (Sandbox Code Playgroud)

这是我在旧redmine中使用的插件列表:

  1. Google Apps插件

  2. Redmine Code …

ruby ruby-on-rails redmine

20
推荐指数
2
解决办法
1万
查看次数

标签 统计

redmine ×1

ruby ×1

ruby-on-rails ×1