-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a rails deprecation warning for the duration attribute (#1408)
``` DEPRECATION WARNING: The behavior of the `:interval` type will be changing in Rails 7.0 to return an `ActiveSupport::Duration` object. If you'd like to keep the old behavior, you can add this line to GoodJob::Execution model: attribute :duration, :string If you'd like the new behavior today, you can add this line: attribute :duration, :interval (called from block (3 levels) in perform at /home/runner/work/good_job/good_job/app/models/good_job/base_execution.rb:440) ```
- Loading branch information
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters