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
What does it do? Following code includes a migration file for
reports
with alocation_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 keylocation_id
. Then I ran the migrations to update my dev and test dbs:I also created a seed files for reports with location ids. Then ran the same commands with
knex seed:run
Closes #13
No tests