add data to Cron.perform which will be passed to ExampleJob.new(data).perform

This commit is contained in:
Jannis Hübl
2016-01-13 17:44:27 +01:00
parent 6881109934
commit dd4f92b569
6 changed files with 46 additions and 15 deletions

View File

@@ -5,6 +5,7 @@ class CreateCronoJobs < ActiveRecord::Migration
t.text :log
t.datetime :last_performed_at
t.boolean :healthy
t.text :data
t.timestamps null: false
end
add_index :crono_jobs, [:job_id], unique: true