Postgres utility package for dbt (getdbt.com)
dbt models for Postgres databases
This macro creates an index on a given column.
Usage:
{{ config({ "post-hook": [ "{{ postgres.index(this, 'id')}}", ], }) }}
View the README on GitHub(opens in a new tab)