Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
reginafcompton opened this issue Jul 9, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@reginafcompton
Copy link
Contributor

reginafcompton commented Jul 9, 2019

Follow-up on #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.

@gregmundy
Copy link
Contributor

@gregmundy gregmundy added the enhancement New feature or request label Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants