20131208000001_update_scheduler3.rb 388 B

123456789101112131415
  1. class UpdateScheduler3 < ActiveRecord::Migration
  2. def up
  3. Scheduler.create_or_update(
  4. :name => 'Cleanup expired sessions',
  5. :method => 'SessionHelper.cleanup_expired',
  6. :period => 60 * 60 * 24,
  7. :prio => 2,
  8. :active => true,
  9. :updated_by_id => 1,
  10. :created_by_id => 1,
  11. )
  12. end
  13. def down
  14. end
  15. end