Module: ActiveRecord::TriggerHelpers
- Defined in:
- lib/active_record/trigger_helpers.rb
Instance Method Summary collapse
Instance Method Details
#create_trigger(name, content) ⇒ Object
3 4 5 6 7 |
# File 'lib/active_record/trigger_helpers.rb', line 3 def create_trigger(name, content) say_with_time("create_trigger(#{name})") do connection.execute(content) end end |
#drop_trigger(name, content) ⇒ Object
9 10 11 12 13 |
# File 'lib/active_record/trigger_helpers.rb', line 9 def drop_trigger(name, content) say_with_time("drop_trigger(#{name})") do connection.execute(content) end end |