POSTing a new Individual can return an error, if certain tables do not have existing data (e.g., POSTing a person with a gender will fail, if her gender is not pre-populated in the gender table).
Some of this data can be pre-determined for all MCI instances. Let's write a (migration?) script that adds data to the following tables when spinning up a new MCI:
Gender
EthnicityRace
EducationLevel
EmploymentStatus
This script might reside in the mci-database repo, if we decide to make it a migration.
Follow-up on https://github.com/brighthive/master-client-index/issues/14
POSTing a new Individual can return an error, if certain tables do not have existing data (e.g., POSTing a person with a gender will fail, if her gender is not pre-populated in the
gender
table).Some of this data can be pre-determined for all MCI instances. Let's write a (migration?) script that adds data to the following tables when spinning up a new MCI:
Gender
EthnicityRace
EducationLevel
EmploymentStatus
This script might reside in the
mci-database
repo, if we decide to make it a migration.