Added scheduler job to cleanup expired sessions issue#98.

This commit is contained in:
Martin Edenhofer 2013-12-08 20:33:55 +01:00
parent ce60f5b71d
commit cf76971666

View file

@ -0,0 +1,15 @@
class UpdateScheduler3 < ActiveRecord::Migration
def up
Scheduler.create_or_update(
:name => 'Cleanup expired sessions',
:method => 'SessionHelper.cleanup_expired',
:period => 60 * 60 * 24,
:prio => 2,
:active => true,
:updated_by_id => 1,
:created_by_id => 1,
)
end
def down
end
end