add migration for check_function