[rubocop] Layout/HeredocIndentation: Use 2 spaces for indentation in a heredoc (#23296)

Rubocop fixes

1. Layout/HeredocIndentation: Use 2 spaces for indentation in a heredoc.
[Layout/HeredocIndentation]
2. Use 2 spaces for indentation in a heredoc.
[Layout/HeredocIndentation]
This commit is contained in:
Kabiru Mwenja
2026-05-21 00:20:41 +03:00
committed by GitHub
parent f71b45e275
commit aa12a0a1ce
+5 -5
View File
@@ -154,11 +154,11 @@ module Projects::SemanticIdentifier
now = Time.current
WorkPackageSemanticAlias.connection.execute(
WorkPackageSemanticAlias.sanitize_sql([<<~SQL.squish, { prefix:, new_prefix:, now: }])
INSERT INTO work_package_semantic_aliases (identifier, work_package_id, created_at, updated_at)
SELECT REPLACE(identifier, :prefix, :new_prefix), work_package_id, :now, :now
FROM (#{relation.to_sql}) AS batch
ON CONFLICT (identifier) DO NOTHING
SQL
INSERT INTO work_package_semantic_aliases (identifier, work_package_id, created_at, updated_at)
SELECT REPLACE(identifier, :prefix, :new_prefix), work_package_id, :now, :now
FROM (#{relation.to_sql}) AS batch
ON CONFLICT (identifier) DO NOTHING
SQL
)
end
end