foreman_maintain
foreman_maintain copied to clipboard
Get rid of type nil host statuses
Migrated from https://projects.theforeman.org/issues/37166
Sometimes this happens during deleting a host:
PG::ForeignKeyViolation: ERROR: update or delete on table "hosts" violates foreign key constraint "host_status_hosts_host_id_fk" on table "host_status" DETAIL: Key (id)=(HOST_ID) is still referenced from table "host_status".