mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 01:10:39 -07:00
Add changes to demographic loader so it the tests don't fail when run in parallel
This commit is contained in:
parent
620e8f5b01
commit
4626d43e3e
1 changed files with 2 additions and 1 deletions
|
|
@ -27,7 +27,8 @@ class DemographicLoader
|
||||||
designation = row['Sex/Gender']
|
designation = row['Sex/Gender']
|
||||||
return unless qualtrics_code && designation
|
return unless qualtrics_code && designation
|
||||||
|
|
||||||
Gender.find_or_create_by!(qualtrics_code:, designation:)
|
gender = Gender.find_or_create_by!(qualtrics_code:, designation:)
|
||||||
|
gender.save
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue