Closed ZhongweiL closed 2 years ago
Again, no description. Why do we need this change?
@khatchad Done.
I don't think it's going to matter. Also, is this supposed to make the tests pass?
If the database gets updated successfully, the test test_same_name
should pass because the current model is allowing duplicate names. But test_same_user
should still fail because we reverted the changes to the user field.
That change didn't work and wasn't thoroughly tested so we need to get it to pass.
I found a fix for that https://github.com/ponder-lab/Imperative-DL-Study-Web-App/issues/147#issuecomment-993930465
Are you sure that migraine are your problem?
You can't make something unique when the task name says add a foreign key. And a comment isn't a fix. Code is a fix.
I'll merge this but I doubt it will make a difference.
Moving the migration command to the first line because the original change didn't work, following up on #159