@classmethod
def ensure_all_indexes(cls):
    """Ensures indexes for each registered :class:`.MappedClass` subclass are created"""
    for m in cls.all_mappers():
        if m.session:
            m.session.ensure_indexes(m.collection)
