def MigrationKeynameFromRevisionObj(up_to_revision):
  """A migration's keyname is the keyname of its up_to_revision.

  Args:
    up_to_revision: models.Revision
  """
  return up_to_revision.key().name()