Ruby helpers for making handy PostgreSQL triggers