Commit cf8a0521 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Use `define_batchable_model` helper

parent 82ca4611
......@@ -7,15 +7,11 @@ class SchedulePopulateStatusColumnOfSecurityScans < Gitlab::Database::Migration[
disable_ddl_transaction!
class SecurityScan < ActiveRecord::Base
include EachBatch
end
def up
return unless Gitlab.ee?
queue_background_migration_jobs_by_range_at_intervals(
SecurityScan,
define_batchable_model('security_scans'),
MIGRATION,
DELAY_INTERVAL,
batch_size: BATCH_SIZE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment