Class: AddInterruptsToTasksQueues

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/queue_dispatcher/migration/templates/add_interrupts_to_tasks_queues.rb

Instance Method Summary collapse

Instance Method Details

#downObject



6
7
8
# File 'lib/generators/queue_dispatcher/migration/templates/add_interrupts_to_tasks_queues.rb', line 6

def down
  remove_column "<%= options[:task_queues_table_name] %>", :interrupts, :string
end

#upObject



2
3
4
# File 'lib/generators/queue_dispatcher/migration/templates/add_interrupts_to_tasks_queues.rb', line 2

def up
  add_column "<%= options[:task_queues_table_name] %>", :interrupts, :text
end