Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Modify DB schema #397

Open
apex-omontgomery opened this issue Sep 14, 2018 · 6 comments · May be fixed by #515
Open

Modify DB schema #397

apex-omontgomery opened this issue Sep 14, 2018 · 6 comments · May be fixed by #515

Comments

@apex-omontgomery
Copy link
Member

apex-omontgomery commented Sep 14, 2018

Collecting housing information for code schools.

Why is this feature being added?

We are currently collecting information on code school housing. We would like to be able to store this in our DB so that FE can render this content.

What should your feature do?

Include provides_housing in the location table, make sure this is send when a code school request occurs. And when performing migration set a default state of False.

@kylemh
Copy link
Member

kylemh commented Sep 14, 2018

Changed variable name 🙃

@emestabillo
Copy link

emestabillo commented Oct 2, 2018

Hi! I'd like to contribute and take this issue :-)

colto added a commit to colto/operationcode_backend that referenced this issue Oct 2, 2018
@apex-omontgomery
Copy link
Member Author

I'm sorry @emestabillo I goofed and didn't reserve this.

@emestabillo
Copy link

No problem!

colto added a commit to colto/operationcode_backend that referenced this issue Oct 8, 2018
colto added a commit to colto/operationcode_backend that referenced this issue Oct 8, 2018
colto added a commit to colto/operationcode_backend that referenced this issue Oct 8, 2018
@apex-omontgomery
Copy link
Member Author

@kylemh this is basically done, we just need to figure out how to successfully do a database migration on production.

shanelonergan pushed a commit to shanelonergan/operationcode_backend that referenced this issue Oct 5, 2019
Created a new migration to add a housing_provided column to the locations table, with a default value of false. Also added housing_provided to the locations serializer so that it is rendered in the JSON returned from the API.

This commit is meant to solve issue OperationCode#397. It will allow housing data to be stored in the back end for each location.
@shanelonergan
Copy link

Hello! Just made a pull request on this issue!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.