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

mciea-main
Nelson Jovel 1 year ago
parent 359c0e2fc0
commit f3c715109f

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

@ -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 "************************************"

Loading…
Cancel
Save