mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
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:
parent
3426e0edea
commit
1da1b238e0
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue