diff options
author | Rubén Dávila <ruben@gitlab.com> | 2017-10-06 06:43:44 +0300 |
---|---|---|
committer | Rubén Dávila <ruben@gitlab.com> | 2017-10-06 06:43:44 +0300 |
commit | 555f50b3e68e82968ea2eb4916a3f5beeeef7b31 (patch) | |
tree | d4ca097c04ceb3c5ae5954bcce29ddd13c1d56d6 /db | |
parent | 5595d73763caf224df4109ab2d52e616cd843d49 (diff) |
Add more specs.
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20171005130944_schedule_create_gpg_key_subkeys_from_gpg_keys.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/post_migrate/20171005130944_schedule_create_gpg_key_subkeys_from_gpg_keys.rb b/db/post_migrate/20171005130944_schedule_create_gpg_key_subkeys_from_gpg_keys.rb index 08c9ce1d3bb..01d56fbd490 100644 --- a/db/post_migrate/20171005130944_schedule_create_gpg_key_subkeys_from_gpg_keys.rb +++ b/db/post_migrate/20171005130944_schedule_create_gpg_key_subkeys_from_gpg_keys.rb @@ -5,6 +5,7 @@ class ScheduleCreateGpgKeySubkeysFromGpgKeys < ActiveRecord::Migration disable_ddl_transaction! DOWNTIME = false + MIGRATION = 'CreateGpgKeySubkeysFromGpgKeys' class GpgKey < ActiveRecord::Base self.table_name = 'gpg_keys' @@ -15,7 +16,7 @@ class ScheduleCreateGpgKeySubkeysFromGpgKeys < ActiveRecord::Migration def up GpgKey.select(:id).each_batch do |gpg_keys| jobs = gpg_keys.pluck(:id).map do |id| - ['CreateGpgKeySubkeysFromGpgKeys', [id]] + [MIGRATION, [id]] end BackgroundMigrationWorker.perform_bulk(jobs) |