Method: Sequel::Postgres::DatabaseMethods#drop_trigger

Defined in:
lib/sequel/adapters/shared/postgres.rb

#drop_trigger(table, name, opts = OPTS) ⇒ Object

Drops a trigger from the database. Arguments:

table

table from which to drop the trigger

name

name of the trigger to drop

opts

options hash:

:cascade

Drop other objects depending on this function.

:if_exists

Don’t raise an error if the function doesn’t exist.



280
281
282
# File 'lib/sequel/adapters/shared/postgres.rb', line 280

def drop_trigger(table, name, opts=OPTS)
  self << drop_trigger_sql(table, name, opts)
end