fix: PG::CardinalityViolation: ERROR: ON CONFLICT DO UPDATE command cannot affect row a second time (PG::CardinalityViolation) HINT: Ensure that no rows proposed for insertion within the same command have duplicate constrained values.

This commit is contained in:
rebuilt 2025-07-02 19:24:29 -07:00
parent 3426e0edea
commit 1da1b238e0

View file

@ -187,8 +187,8 @@ class SurveyResponsesDataLoader
survey_item_response.sped = sped
survey_item_response.student = student
survey_item_response.parent = parent
survey_item_response
survey_item_response.save
[]
else
SurveyItemResponse.new(
response_id: row.response_id,