Fixing foreign key migration order