diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-11-23 13:28:29 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-11-23 13:28:29 +0100 |
commit | 1143411ae848fade4050d3d8319ba5ed88a1b1da (patch) | |
tree | b5caa33eecd10857a0c2e61b7c3225ac04b16577 /db/post_migrate | |
parent | 627b4833c58b7bd9ffc852d4c76175366ab4f23b (diff) | |
download | gitlab-ce-1143411ae848fade4050d3d8319ba5ed88a1b1da.tar.gz |
Reduce Sidekiq signature of scheduled tokens migration
Diffstat (limited to 'db/post_migrate')
-rw-r--r-- | db/post_migrate/20181121111200_schedule_runners_token_encryption.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/post_migrate/20181121111200_schedule_runners_token_encryption.rb b/db/post_migrate/20181121111200_schedule_runners_token_encryption.rb index 33403610d8e..3a59217f07a 100644 --- a/db/post_migrate/20181121111200_schedule_runners_token_encryption.rb +++ b/db/post_migrate/20181121111200_schedule_runners_token_encryption.rb @@ -24,7 +24,7 @@ class ScheduleRunnersTokenEncryption < ActiveRecord::Migration relation.each_batch(of: RANGE_SIZE) do |relation| range = relation.pluck('MIN(id)', 'MAX(id)').first - args = [model, model.encrypted_attributes.keys, *range] + args = [model.name.demodulize.downcase, *range] BackgroundMigrationWorker.perform_in(delay, MIGRATION, args) end |