Class: AddInterruptsToTasksQueues
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddInterruptsToTasksQueues
- Defined in:
- lib/generators/queue_dispatcher/migration/templates/add_interrupts_to_tasks_queues.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
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 |
#up ⇒ Object
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 |