docs: def database_forwards(self, app_label, schema_editor, from_state, to_state):
          """Perform forward migration."""
          Process = from_state.apps.get_model('flow', 'Process')  # pylint: disable=invalid-name
  
          # Validate process types to ensure consistency.
          errors = validate_process_types(Process.objects.all())
          if errors:
              raise ValueError("Process type consistency check failed after migration: {}".format(errors))