trabajo-afectivo/config/initializers/delayed_jobs_verify_db_connection.rb

11 lines
172 B
Ruby
Raw Normal View History

require 'delayed_job'
module Delayed
class Job < ::ActiveRecord::Base
def self.recover_from(_error)
::ActiveRecord::Base.connection.verify!
end
end
end