Prepare migration

@nschonni can you look over it?