Class: Admin::DeviceAuthorizationsCleanupJob

Inherits:
Koi::ApplicationJob show all
Defined in:
app/jobs/admin/device_authorizations_cleanup_job.rb

Instance Method Summary collapse

Instance Method Details

#performObject



5
6
7
# File 'app/jobs/admin/device_authorizations_cleanup_job.rb', line 5

def perform
  Admin::DeviceAuthorization.where(created_at: ...7.days.ago).delete_all
end