class PGTrunk::Operations::Triggers::DropTrigger

@private

Public Instance Methods

invert() click to toggle source
# File lib/pg_trunk/operations/triggers/drop_trigger.rb, line 70
def invert
  irreversible!("if_exists: true") if if_exists
  CreateTrigger.new(**to_h)
end
to_sql(_version) click to toggle source
# File lib/pg_trunk/operations/triggers/drop_trigger.rb, line 64
def to_sql(_version)
  sql = "DROP TRIGGER"
  sql << " IF EXISTS" if if_exists
  sql << " #{name.name.inspect} ON #{table.to_sql};"
end