Sha256: 4ed5bcbe2693bf5eb800933edb5b6c7c313530913b58dabb89101b351bb13697
Contents?: true
Size: 374 Bytes
Versions: 3
Compression:
Stored size: 374 Bytes
Contents
class AddExpiredAtToAsyncapiServerJob < ActiveRecord::Migration[4.2] def change add_column :asyncapi_server_jobs, :expired_at, :datetime Asyncapi::Server::Job.reset_column_information Asyncapi::Server::Job. where(Asyncapi::Server::Job.arel_table[:expired_at].eq(nil)). update_all(expired_at: Asyncapi::Server.expiry_threshold.from_now) end end
Version data entries
3 entries across 3 versions & 1 rubygems