brighthive / master-client-index

BrightHive's Master Client Index framework.
MIT License
2 stars 2 forks source link

Write migrations script to auto-populate Gender, Ethnicity, Education Level, and Employment Status #17

Open reginafcompton opened 5 years ago

reginafcompton commented 5 years ago

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:

This script might reside in the mci-database repo, if we decide to make it a migration.

gregmundy commented 5 years ago

Another card with some stuff from another repo.