diff --git a/app/lib/admin/system_check/missing_indexes_check.rb b/app/lib/admin/system_check/missing_indexes_check.rb index 73443e93f54..b7eecbb067e 100644 --- a/app/lib/admin/system_check/missing_indexes_check.rb +++ b/app/lib/admin/system_check/missing_indexes_check.rb @@ -19,7 +19,7 @@ class Admin::SystemCheck::MissingIndexesCheck < Admin::SystemCheck::BaseCheck @missing_indexes ||= begin expected_indexes_by_table.flat_map do |table, indexes| expected_indexes = indexes.map(&:name) - (expected_indexes - existing_indexes_for(table)).compact + expected_indexes - existing_indexes_for(table) end end end