You should never edit a migration manually unless you really know what you're doing. If it's been screwed up then you need to create a second migration to fix it again. Editing it by hand is likely going to cause bigger problems because it's quite a complex system.