Actions
Bug #33878
openInvalid single-table inheritance in migration
Status:
New
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
No
Description
Occurred with foreman-2.1.3 and foreman_bootdisk-17.0.2
relates to: #10773
While running foreman_bootdisk's DB-migration, the following error occurred:
== 20140522185700 ChangeTemplatekindToBootdisk: migrating ===================== rake aborted! StandardError: An error has occurred, this and all later migrations canceled: Invalid single-table inheritance type: ProvisioningTemplate is not a subclass of ChangeTemplatekindToBootdisk::FakeConfigTemplate /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/inheritance.rb:241:in `find_sti_class' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/inheritance.rb:215:in `discriminate_class_for_record' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/persistence.rb:257:in `instantiate' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/querying.rb:58:in `block (2 levels) in find_by_sql' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/result.rb:62:in `block in each' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/result.rb:62:in `each' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/result.rb:62:in `each' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/querying.rb:58:in `map' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/querying.rb:58:in `block in find_by_sql' /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/querying.rb:56:in `find_by_sql' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/relation.rb:821:in `block in exec_queries' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/relation.rb:839:in `skip_query_cache_if_necessary' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/relation.rb:808:in `exec_queries' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/relation.rb:626:in `load' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/relation.rb:250:in `records' /opt/theforeman/tfm/root/usr/share/gems/gems/activerecord-6.0.3.1/lib/active_record/relation/delegation.rb:87:in `|' /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_bootdisk-17.0.2/db/migrate/20140522185700_change_templatekind_to_bootdisk.rb:18:in `up'
No data to display
Actions