diff options
Diffstat (limited to 'app/models/clusters/clusters_hierarchy.rb')
-rw-r--r-- | app/models/clusters/clusters_hierarchy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/clusters/clusters_hierarchy.rb b/app/models/clusters/clusters_hierarchy.rb index c9c18d8c96a..125783e6ee1 100644 --- a/app/models/clusters/clusters_hierarchy.rb +++ b/app/models/clusters/clusters_hierarchy.rb @@ -16,7 +16,7 @@ module Clusters model .unscoped - .where('clusters.id IS NOT NULL') + .where.not('clusters.id' => nil) .with .recursive(cte.to_arel) .from(cte_alias) |