diff --git a/src/models.py b/src/models.py index 07cc0c4..acfe1fc 100644 --- a/src/models.py +++ b/src/models.py @@ -52,6 +52,5 @@ class Item(ItemBase): Computed("to_tsvector('russian', geodata.description)", persisted=True), ) - __table_args__ = Index( - "geodata_search_idx", geodata_search_ts, postgresql_using="gin" - ) + +Index("geodata_search_idx", Item.geodata_search_ts, postgresql_using="gin")