Estoy intentando actualizar mi redmine de 1.3.0 a 2.0.0, pero tengo problemas con la migración de la base de datos. Cuando ejecuto el comando:ActiveRecord :: SubclassNotFound
rake db:migrate RAILS_ENV=production
se muestra un error como
rake aborted!
uninitialized constant RAILS_ENV
Mi registro de errores es:
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'
Aquí está la lista de plugin que estoy usando en mi vieja redmine:
Google Apps plugin
plugin de Código Redmine Revisión complemento
Redmine Hudson
Por favor, me ayudan a
'self.inheritance_column = las negativas también hace el truco. – Amir
Es más fácil simplemente cambiarle el nombre 'table_type' en lugar de hacer hacks con' inheritance_column' Probé esto con nil y un símbolo y la aplicación se rompió en el modelo heredado en diferentes áreas. –
'No use una columna llamada tipo. Muchas gracias ...... –