Host::Discovered does not have `belongs_to :hostgroup` association. It's defined only in Host::Managed. So now I am lost again what did you mean? :/