Class: Pairer::CleanupBoardsJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/pairer/cleanup_boards_job.rb

Instance Method Summary collapse

Instance Method Details

#performObject



4
5
6
# File 'app/jobs/pairer/cleanup_boards_job.rb', line 4

def perform
  Board.where.not(org_id: Pairer.config.allowed_org_ids).destroy_all
end