prepare migration directory