I create a custom index UniqueIndexWithCondition. Run this command
aerich migrate --name initial_commit
response:
AttributeError: 'UniqueIndexWithCondition' object has no attribute 'index_name'
code example: my custom index
class UniqueIndexWithCondition(Index):
...
Just redeclare a index_name(self, *args, **kwargs)