'Given a migration name, try to extract a number from the beginning of
it. If no number is found, return None.'

@classmethod
def parse_number(cls, name):

    match = re.match('^\\d+', name)
    if match:
        return int(match.group())
    return None
