Method: RR::ReplicationInitializer#drop_trigger

Defined in:
lib/rubyrep/replication_initializer.rb

#drop_trigger(database, table) ⇒ Object

Drops the replication trigger of the named table.

  • database: either :left or :right

  • table: name of the table



58
59
60
61
# File 'lib/rubyrep/replication_initializer.rb', line 58

def drop_trigger(database, table)
  trigger_name = "#{options(table)[:rep_prefix]}_#{table}"
  session.send(database).drop_replication_trigger trigger_name, table
end