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

rpp-main
Nelson Jovel 1 year ago
parent 33013e6716
commit 678dd5416e

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

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

Loading…
Cancel
Save