mirror of
https://github.com/kennethreitz-archive/www.gittip.com.git
synced 2026-06-20 15:20:56 +00:00
5e69c4542a
Postgres has a feature called "rules," where we can rewrite queries based on certain conditions. I've decided to implement #141 using a rule. Starting with the example here: http://www.postgresql.org/docs/9.1/static/rules-update.html this commit adds a rule to log changes to the participant.goal column to a separate `goals` table. This means that we can keep the simplicity of reading and writing that value as we've always done, *and* we can have a detailed log of changes to drive more advanced visualizations. Huzzah! :D