Remove Gitlab::BackgroundMigration exxxplicit namespaces from migration classes

This commit is contained in:
Shinya Maeda 2018-05-22 15:36:59 +09:00
parent 321e580ede
commit 2eaef5b3a9
3 changed files with 6 additions and 6 deletions

View File

@ -10,8 +10,8 @@ module Gitlab
end
def perform(start_id, stop_id)
Gitlab::BackgroundMigration::FillFileStoreJobArtifact::JobArtifact
.where('file_store is NULL')
FillFileStoreJobArtifact::JobArtifact
.where(file_store: nil)
.where(id: (start_id..stop_id))
.update_all(file_store: 1)
end

View File

@ -10,8 +10,8 @@ module Gitlab
end
def perform(start_id, stop_id)
Gitlab::BackgroundMigration::FillFileStoreLfsObject::LfsObject
.where('file_store is NULL')
FillFileStoreLfsObject::LfsObject
.where(file_store: nil)
.where(id: (start_id..stop_id))
.update_all(file_store: 1)
end

View File

@ -11,8 +11,8 @@ module Gitlab
end
def perform(start_id, stop_id)
Gitlab::BackgroundMigration::FillStoreUpload::Upload
.where('store is NULL')
FillStoreUpload::Upload
.where(store: nil)
.where(id: (start_id..stop_id))
.update_all(store: 1)
end