diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-04-27 08:31:26 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-05-28 08:50:10 +0300 |
commit | c0b4f8ac3dea446d2b7bdd04eecf3456f79fe7e7 (patch) | |
tree | b13f75feb7bc1bd8c71d75bb639942a108d667ec /lib | |
parent | 76f0d7fe6e1a80d5b07eaa792f33d62ec8736d0d (diff) |
Remove legacy artifacts file_store migration
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/background_migration/fill_file_store_build_archive.rb | 21 | ||||
-rw-r--r-- | lib/gitlab/background_migration/fill_file_store_build_metadata.rb | 21 |
2 files changed, 0 insertions, 42 deletions
diff --git a/lib/gitlab/background_migration/fill_file_store_build_archive.rb b/lib/gitlab/background_migration/fill_file_store_build_archive.rb deleted file mode 100644 index 02d744b7a74..00000000000 --- a/lib/gitlab/background_migration/fill_file_store_build_archive.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true -# rubocop:disable Metrics/AbcSize -# rubocop:disable Style/Documentation - -module Gitlab - module BackgroundMigration - class FillFileStoreBuildArchive - class Build < ActiveRecord::Base - self.table_name = 'ci_builds' - self.inheritance_column = :_type_disabled - end - - def perform(start_id, stop_id) - FillFileStoreBuildArchive::Build - .where('artifacts_file_store = NULL') - .where(id: (start_id..stop_id)) - .update_all(artifacts_file_store: 1) - end - end - end -end diff --git a/lib/gitlab/background_migration/fill_file_store_build_metadata.rb b/lib/gitlab/background_migration/fill_file_store_build_metadata.rb deleted file mode 100644 index bf1a10b104e..00000000000 --- a/lib/gitlab/background_migration/fill_file_store_build_metadata.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true -# rubocop:disable Metrics/AbcSize -# rubocop:disable Style/Documentation - -module Gitlab - module BackgroundMigration - class FillFileStoreBuildMetadata - class Build < ActiveRecord::Base - self.table_name = 'ci_builds' - self.inheritance_column = :_type_disabled - end - - def perform(start_id, stop_id) - FillFileStoreBuildMetadata::Build - .where('artifacts_metadata_store = NULL') - .where(id: (start_id..stop_id)) - .update_all(artifacts_metadata_store: 1) - end - end - end -end |