Remove unused targets from Makefile
Add unit test for duplicate migration numbers

Duplicate migration numbers can happen when merging changes from
different branches. This test ensures that we address the issue right
away.