Class: UpdateTotoroFailedMessages

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/totoro/templates/update_totoro_failed_messages.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
# File 'lib/generators/totoro/templates/update_totoro_failed_messages.rb', line 2

def change
  add_column :totoro_failed_messages, :group, :string
  Totoro::TotoroFailedMessage.all.update(group: 'enqueue')
end