| Path: | README |
| Last Update: | Thu Mar 01 17:04:35 -0800 2007 |
Add triggers to your active record migrations.
script/plugin install svn://rubyforge.org/var/svn/artriggers/trunk/trigger_happy
Add a trigger:
add_trigger "ai_people",
:on => 'people',
:timing => 'after',
:event => 'insert',
:statement => 'INSERT INTO log (id, timestamp) VALUES (NEW.id, NOW())'
Remove a trigger:
drop_trigger 'ai_people'
Only works with mysql for now.