Class: Migratio::Worker::Migrator

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/migratio/worker/migrator.rb

Instance Method Summary collapse

Instance Method Details

#perform(*params) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/migratio/worker/migrator.rb', line 8

def perform(*params)
  begin
    perform_action(*params)
  rescue => e
    $stderr << "Something bad!\n"
    $stderr << "#{e}\n"
  end
end