Fix migrations

@adamggg
commit b84dfde0e261197a1792e25e66f524352a550f9b is in the master branch however I never merged it. It is wrong and according to the github network tab it is never merged however still appears in master branch. anyway here is the fix for what it messes up