Clear the realm cache on migrations

@kneth @bmunkholm @cmelchior