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