Class: Webhookdb::Jobs::CreateMirrorTable

Inherits:
Object
  • Object
show all
Extended by:
Async::Job
Defined in:
lib/webhookdb/jobs/create_mirror_table.rb

Instance Method Summary collapse

Methods included from Async::Job

extended

Instance Method Details

#_perform(event) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/webhookdb/jobs/create_mirror_table.rb', line 11

def _perform(event)
  sint = self.lookup_model(Webhookdb::ServiceIntegration, event)
  self.with_log_tags(sint.log_tags) do
    svc = Webhookdb::Replicator.create(sint)
    svc.create_table(if_not_exists: true)
  end
end