Reset scheduler attribute information after changing it.

This commit is contained in:
Martin Edenhofer 2013-12-08 21:32:54 +01:00
parent b2adc3cf57
commit 6bf1d11f4d

View file

@ -3,6 +3,7 @@ require 'setting'
class SchedulerUpdate < ActiveRecord::Migration class SchedulerUpdate < ActiveRecord::Migration
def up def up
add_column :schedulers, :prio, :integer, :null => true add_column :schedulers, :prio, :integer, :null => true
Scheduler.reset_column_information
Scheduler.create_or_update( Scheduler.create_or_update(
:name => 'Import OTRS diff load', :name => 'Import OTRS diff load',
:method => 'Import::OTRS.diff_worker', :method => 'Import::OTRS.diff_worker',