-- fixing a mistake. I accidentally did AFTER UPDATE when I wanted AFTER INSERT.
DROP TRIGGER create_build ON api.builds;

CREATE TRIGGER create_build
  AFTER INSERT ON api.builds
  FOR EACH ROW
  EXECUTE FUNCTION tg__add_build_job();
