Using postgresql functions is convenient, but keeping them updated is rather difficult. Ideally one would want to keep this separate from database migrations (possibly up to some version constraint mechanism in the migrations), and be able to work collaboratively on a repository for your postgres functions that the database is synced to.
Is there any tool to do this and work on functions in a git repository instead of basically writing a migration script for every change?