diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-01-25 13:24:35 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2019-01-25 13:24:35 +0000 |
commit | dc6091876d1c70e25f2153d24dbe04f8b4b875a9 (patch) | |
tree | 4c5bc9ec686a9ebf44db55171381aba6572f1d5f /db | |
parent | dfa31d5f2fa4a6c71c992710b9d1786707b4c912 (diff) | |
parent | 99689c83d1c08cc7a7406e89809ac592acbf058a (diff) | |
download | gitlab-ce-dc6091876d1c70e25f2153d24dbe04f8b4b875a9.tar.gz |
Merge branch 'container-repository-cleanup-api' into 'master'
Container repository cleanup API
Closes #55978
See merge request gitlab-org/gitlab-ce!24303
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20190115054215_migrate_delete_container_repository_worker.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/post_migrate/20190115054215_migrate_delete_container_repository_worker.rb b/db/post_migrate/20190115054215_migrate_delete_container_repository_worker.rb new file mode 100644 index 00000000000..4fcee326b7e --- /dev/null +++ b/db/post_migrate/20190115054215_migrate_delete_container_repository_worker.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class MigrateDeleteContainerRepositoryWorker < ActiveRecord::Migration[5.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + sidekiq_queue_migrate('delete_container_repository', to: 'container_repository:delete_container_repository') + end + + def down + sidekiq_queue_migrate('container_repository:delete_container_repository', to: 'delete_container_repository') + end +end |