Add and install delayed_cron_job gem
This commit is contained in:
parent
608419701e
commit
8965c668d9
4 changed files with 15 additions and 1 deletions
9
db/migrate/20170926092716_add_cron_to_delayed_jobs.rb
Normal file
9
db/migrate/20170926092716_add_cron_to_delayed_jobs.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class AddCronToDelayedJobs < ActiveRecord::Migration[5.0]
|
||||
def self.up
|
||||
add_column :delayed_jobs, :cron, :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :delayed_jobs, :cron
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20170926083816) do
|
||||
ActiveRecord::Schema.define(version: 20170926092716) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -174,6 +174,7 @@ ActiveRecord::Schema.define(version: 20170926083816) do
|
|||
t.string "queue"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "cron"
|
||||
t.index ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue