From 1240e8d558c87d4ec2a76f3a07bd43ae4a4311d8 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Mon, 22 Dec 2014 11:30:25 -0500 Subject: [PATCH] Fix deprecation in ActiveRecord::Migration#timestamp --- lib/generators/delayed_job/templates/migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/delayed_job/templates/migration.rb b/lib/generators/delayed_job/templates/migration.rb index cfadeb7a..27fdcf6c 100644 --- a/lib/generators/delayed_job/templates/migration.rb +++ b/lib/generators/delayed_job/templates/migration.rb @@ -10,7 +10,7 @@ def self.up table.datetime :failed_at # Set when all retries have failed (actually, by default, the record is deleted instead) table.string :locked_by # Who is working on this object (if locked) table.string :queue # The name of the queue this job is in - table.timestamps + table.timestamps null: true end add_index :delayed_jobs, [:priority, :run_at], name: "delayed_jobs_priority"