Tweet-311-Denver / tweet_311_denver_service

Backend for Tweet311Denver Turing Project
MIT License
1 stars 0 forks source link

Add reports table #16

Closed ap2322 closed 4 years ago

ap2322 commented 4 years ago

What does it do? Following code includes a migration file for reports with a location_id

How did you solve the problem? In order to add reports table I ran knex migrate:make reports and then edited the reports file with the attributes of our payload from the front end and the foreign key location_id. Then I ran the migrations to update my dev and test dbs:

knex migrate:latest
knex migrate:latest --env test

I also created a seed files for reports with location ids. Then ran the same commands with knex seed:run

Closes #13

No tests