chore: handle unknowns when parsing records

This commit is contained in:
Nelson Jovel 2024-06-24 13:47:28 -07:00
parent e8bc5eb11a
commit 8c0faa3445
2 changed files with 4 additions and 0 deletions

View file

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

View file

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