Class: Gitlab::BackgroundMigration::MigrateNullPrivateProfileToFalse

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/background_migration/migrate_null_private_profile_to_false.rb

Overview

This class is responsible for migrating a range of users with private_profile == NULL to false

Defined Under Namespace

Classes: User

Instance Method Summary collapse

Instance Method Details

#perform(start_id, stop_id) ⇒ Object


12
13
14
# File 'lib/gitlab/background_migration/migrate_null_private_profile_to_false.rb', line 12

def perform(start_id, stop_id)
  User.where(private_profile: nil, id: start_id..stop_id).update_all(private_profile: false)
end