= Trigger Happy
Add triggers to your active record migrations.
== INSTALL
script/plugin install svn://rubyforge.org/var/svn/artriggers/trunk/trigger_happy
== EXAMPLE
Add a trigger:
add_trigger "ai_people",
:on => 'people',
:timing => 'after',
:event => 'insert',
:statement => 'INSERT INTO log (id, timestamp) VALUES (NEW.id, NOW())'
Update an existing trigger (drops then adds):
update_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'
== LIMITATIONS
Only works with mysql for now.
Project
Empact-trackless_triggers
Adds support for MySQL triggers in ActiveRecord
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Development
Dependencies
Project Readme