debian-mirror-gitlab/db/post_migrate/20180603190921_migrate_object_storage_upload_sidekiq_queue.rb
2018-11-08 19:23:39 +05:30

17 lines
432 B
Ruby

class MigrateObjectStorageUploadSidekiqQueue < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
sidekiq_queue_migrate 'object_storage_upload', to: 'object_storage:object_storage_background_move'
end
def down
# do not migrate any jobs back because we would migrate also
# jobs which were not part of the 'object_storage_upload'
end
end