2018-11-13 07:27:31 +00:00
|
|
|
class MigrateObjectStorageUploadSidekiqQueue < ActiveRecord::Migration[4.2]
|
2018-05-27 20:02:47 +00:00
|
|
|
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
|