When migrating my DB, this error appears. Below is my code followed by the error that I am getting when trying to run the migration.
Code
The order of creation of migration files should be sorted and the foreign key should have exactly similar property as the primary key in the other table.