chore: handle cases where the pivot table inserts headers instead of actual values for gender and race

This commit is contained in:
Nelson Jovel 2024-06-24 19:09:19 -07:00
parent 8c0faa3445
commit 0cbc73821c
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ class Gender < ApplicationRecord
99
when %r{^#*N/*A$}i
99
when /Unknown|99/i
when /Unknown|99|Gender/i
99
else
puts "************************************"

View file

@ -30,7 +30,7 @@ class Race < ApplicationRecord
8
when %r{^#*N/*A$}i
nil
when /Unknown|99/i
when /Unknown|99|Multiracial|Race/i
99
else
puts "************************************"