Trigger/automation engine for ActiveRecord models