'Returns the migration that comes before this one in the sequence.'

def previous(self):

    index = (self.migrations.index(self) - 1)
    if (index < 0):
        return None
    return self.migrations[index]
