From b5c07f089cdde2b8d86937dc1f5ef8c0ad0a4b79 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 7 Mar 2013 08:25:10 +0100 Subject: [PATCH] Try to get correct exit code for unit tests. --- db/migrate/20130305065226_scheduler_create.rb | 24 ------------------- db/migrate/20130305111945_update_sla.rb | 24 +++++++++++++++++++ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/db/migrate/20130305065226_scheduler_create.rb b/db/migrate/20130305065226_scheduler_create.rb index 56c098737..c3a9d8530 100644 --- a/db/migrate/20130305065226_scheduler_create.rb +++ b/db/migrate/20130305065226_scheduler_create.rb @@ -13,30 +13,6 @@ class SchedulerCreate < ActiveRecord::Migration t.column :created_by_id, :integer, :null => false t.timestamps end - Scheduler.create( - :name => 'Check Channels', - :method => 'Channel.fetch', - :period => 30, - :active => true, - :updated_by_id => 1, - :created_by_id => 1, - ) - Scheduler.create( - :name => 'Import OTRS diff load', - :method => 'Import::OTRS.diff_loop', - :period => 60 * 10, - :active => true, - :updated_by_id => 1, - :created_by_id => 1, - ) - Scheduler.create( - :name => 'Generate Session data', - :method => 'Session.jobs', - :period => 60, - :active => true, - :updated_by_id => 1, - :created_by_id => 1, - ) add_index :schedulers, [:name], :unique => true end diff --git a/db/migrate/20130305111945_update_sla.rb b/db/migrate/20130305111945_update_sla.rb index bba8b93ea..beb51b219 100644 --- a/db/migrate/20130305111945_update_sla.rb +++ b/db/migrate/20130305111945_update_sla.rb @@ -1,5 +1,29 @@ class UpdateSla < ActiveRecord::Migration def up + Scheduler.create( + :name => 'Check Channels', + :method => 'Channel.fetch', + :period => 30, + :active => true, + :updated_by_id => 1, + :created_by_id => 1, + ) + Scheduler.create( + :name => 'Import OTRS diff load', + :method => 'Import::OTRS.diff_loop', + :period => 60 * 10, + :active => true, + :updated_by_id => 1, + :created_by_id => 1, + ) + Scheduler.create( + :name => 'Generate Session data', + :method => 'Session.jobs', + :period => 60, + :active => true, + :updated_by_id => 1, + :created_by_id => 1, + ) add_column :slas, :first_response_time, :integer, :null => true add_column :slas, :update_time, :integer, :null => true add_column :slas, :close_time, :integer, :null => true