code: def create(self, name='auto', auto=False):
          
          migrate = rollback = ''
          if auto:
              # Need to append the CURDIR to the path for import to work.
              sys.path.append(CURDIR)
              try:
                  modules = [auto]
                  if isinstance(auto, bool):
                      modules = [m for _, m, ispkg in pkgutil.iter_modules([CURDIR]) if ispkg]
  
                  models = [m for module in modules for m in load_models(module)]
  
              except ImportError:
                  return self.logger.error("Can't import models module: %s", auto)
  
              if self.ignore:
                  models = [m for m in models if m._meta.name not in self.ignore]
  
              for migration in self.diff:
                  self.run_one(migration, self.migrator, fake=True)
  
              migrate = compile_migrations(self.migrator, models)
              if not migrate:
                  return self.logger.warn('No changes found.')
  
              rollback = compile_migrations(self.migrator, models, reverse=True)
  
          self.logger.info('Creating migration "%s"', name)
          name = self.compile(name, migrate, rollback)
          self.logger.info('Migration has been created as "%s"', name)
          return name
docs: Create a migration.
          :param auto: Python module path to scan for models.