Implement hide by client ip with tests. Fix migration issues.