Class: DbDiff::Delta::DropTrigger

Inherits:
DbDiff::Delta show all
Defined in:
lib/dbdiff/delta.rb

Instance Attribute Summary

Attributes inherited from DbDiff::Delta

#element

Instance Method Summary collapse

Methods inherited from DbDiff::Delta

#initialize, #table, #to_a

Constructor Details

This class inherits a constructor from DbDiff::Delta

Instance Method Details

#process(database) ⇒ Object



347
348
349
# File 'lib/dbdiff/delta.rb', line 347

def process(database)
  table(database).triggers.delete(element)
end

#sqlObject



343
344
345
# File 'lib/dbdiff/delta.rb', line 343

def sql
  return "DROP TRIGGER `#{element.name}`"
end