From a9f032ca0a4bf891fa15783dce2ea88e1a43875b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 7 Mar 2013 08:20:52 +0100 Subject: [PATCH] Try to get correct exit code for unit tests. --- db/migrate/20130305065226_scheduler_create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20130305065226_scheduler_create.rb b/db/migrate/20130305065226_scheduler_create.rb index 76e6b3ddb..56c098737 100644 --- a/db/migrate/20130305065226_scheduler_create.rb +++ b/db/migrate/20130305065226_scheduler_create.rb @@ -13,7 +13,6 @@ class SchedulerCreate < ActiveRecord::Migration t.column :created_by_id, :integer, :null => false t.timestamps end - add_index :schedulers, [:name], :unique => true Scheduler.create( :name => 'Check Channels', :method => 'Channel.fetch', @@ -38,6 +37,7 @@ class SchedulerCreate < ActiveRecord::Migration :updated_by_id => 1, :created_by_id => 1, ) + add_index :schedulers, [:name], :unique => true end def down