lib/tasks/fix_nil_ethnicity_arrays.rake
def find_person(person_hbx_id)
      Person.find_by(hbx_id: person_hbx_id)
    rescue StandardError => e
      puts "Error finding person document - hbx_id: #{person_hbx_id}"
    end
# - find draft applications that were ingested via ATP (or using provided hbx_id)
# - check and update person ethnicity array
# - check and update applicant ethnicity array
find draft applications that were ingested via ATP (or using provided hbx_id)
check and update person ethnicity array
check and update applicant ethnicity array
find draft applications that were ingested via ATP ( or using provided hbx_id ) check and update person ethnicity array check and update applicant ethnicity array
def find_person(person_hbx_id)
      Person.find_by(hbx_id: person_hbx_id)
    rescue StandardError => e
      puts "Error finding person document - hbx_id: #{person_hbx_id}"
    end
def find_person ( person_hbx_id ) Person . find_by ( hbx_id : person_hbx_id ) rescue StandardError => e puts "Error finding person document - hbx_id: #{person_hbx_id}" end
find draft applications that were ingested via ATP (or using provided hbx_id)
 check and update person ethnicity array
 check and update applicant ethnicity array
find draft applications that were ingested via ATP ( or using provided hbx_id ) check and update person ethnicity array check and update applicant ethnicity array
person_hbx_id