From b6094a3e848f274453013e45707ac6fdd88a49c3 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 26 Aug 2013 01:23:10 +0200 Subject: [PATCH] Fixed module name. --- db/migrate/20130502000001_scheduler_update.rb | 2 +- db/migrate/20130826000001_update_scheduler2 | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20130826000001_update_scheduler2 diff --git a/db/migrate/20130502000001_scheduler_update.rb b/db/migrate/20130502000001_scheduler_update.rb index 573cb4215..5ba8c9861 100644 --- a/db/migrate/20130502000001_scheduler_update.rb +++ b/db/migrate/20130502000001_scheduler_update.rb @@ -23,7 +23,7 @@ class SchedulerUpdate < ActiveRecord::Migration ) Scheduler.create_or_update( :name => 'Generate Session data', - :method => 'Session.jobs', + :method => 'Sessions.jobs', :period => 60, :prio => 1, :active => true, diff --git a/db/migrate/20130826000001_update_scheduler2 b/db/migrate/20130826000001_update_scheduler2 new file mode 100644 index 000000000..1289d5fb2 --- /dev/null +++ b/db/migrate/20130826000001_update_scheduler2 @@ -0,0 +1,15 @@ +class UpdateScheduler2 < ActiveRecord::Migration + def up + Scheduler.create_or_update( + :name => 'Generate Session data', + :method => 'Sessions.jobs', + :period => 60, + :prio => 1, + :active => true, + :updated_by_id => 1, + :created_by_id => 1, + ) + end + def down + end +end