Upgrading to Satellite 6.11 hits error during foreman-rake db:seed process
Issue
While upgrading to Satellite 6.11 the following error is hit during the /usr/sbin/foreman-rake db:seed action:
ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'Setting::General'. This error is raised because the column 'category' 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 Setting.inheritance_column to use another column for that information.
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.6/lib/active_record/inheritance.rb:234:in `rescue in find_sti_class'
/opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.6/lib/active_record/inheritance.rb:227:in `find_sti_class'
...
Caused by:
NameError: uninitialized constant Setting::General
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_hooks-0.3.17/lib/foreman_hooks/as_dependencies_hook.rb:4:in `load_missing_constant'
/opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.6/lib/active_support/inflector/methods.rb:284:in `const_get'
...
Environment
- Red Hat Satellite 6.11
- Red Hat Satellite 6.12
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.