Closed bryceknz closed 5 years ago
All foreign keys should use references in their migration to ensure data integrity.
references
Students
users.id
cohorts.id
Assessments
modules.id
Students_Assessments
students.id
assessments.id
statuses.id
Note* This may affect how the migrations and seeds are run - order matters! Pay attention to this and fix any ordering errors if they arise.
All foreign keys should use
references
in their migration to ensure data integrity.Students
table needs to referenceusers.id
andcohorts.id
Assessments
table needs to referencemodules.id
Students_Assessments
table needs to referencestudents.id
,assessments.id
, andstatuses.id
Note* This may affect how the migrations and seeds are run - order matters! Pay attention to this and fix any ordering errors if they arise.