Class: AddResultToTasks

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

Instance Method Summary collapse

Instance Method Details

#downObject



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

def down
  remove_column "<%= options[:tasks_table_name] %>", :result, :text
end

#upObject



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

def up
  add_column "<%= options[:tasks_table_name] %>", :result, :text
end