We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ab98c0 + e2fd841 commit c4d8a8aCopy full SHA for c4d8a8a
app/models/maintenance_tasks/run.rb
@@ -46,8 +46,13 @@ class Run < ApplicationRecord
46
47
attr_readonly :task_name
48
49
- serialize :backtrace
50
- serialize :arguments, JSON
+ if Rails.gem_version >= Gem::Version.new("7.1.alpha")
+ serialize :backtrace, coder: YAML
51
+ serialize :arguments, coder: JSON
52
+ else
53
+ serialize :backtrace
54
+ serialize :arguments, JSON
55
+ end
56
57
scope :active, -> { where(status: ACTIVE_STATUSES) }
58
scope :completed, -> { where(status: COMPLETED_STATUSES) }
0 commit comments