Fix migration for results with empty names [SCI-9443]

This commit is contained in:
Oleksii Kriuchykhin 2023-10-06 15:10:31 +02:00
parent 1c84a97bd7
commit 79b2e4f984

View file

@ -7,7 +7,7 @@ class SetDefaultNamesForResults < ActiveRecord::Migration[7.0]
FROM results
WHERE result_texts.result_id = results.id
AND (result_texts.name = '' OR result_texts.name IS NULL)
AND results.name IS NOT NULL AND results.name != ''"
AND results.name IS NOT NULL AND results.name != '' AND results.name != 'Untitled result'"
)
ActiveRecord::Base.connection.execute(