Skip to content
Snippets Groups Projects

Drop migration that finalizes migration to add PAT expiration

Merged Stan Hu requested to merge sh-drop-token-expiration-migrations-17-0 into 17-0-stable-ee
All threads resolved!
1 file
+ 1
10
Compare changes
  • Side-by-side
  • Inline
@@ -7,16 +7,7 @@ module BackgroundMigration
class CleanupPersonalAccessTokensWithNilExpiresAt < BatchedMigrationJob
feature_category :system_access
EXPIRES_AT_DEFAULT = 365.days.from_now
scope_to ->(relation) { relation.where(expires_at: nil) }
operation_name :update_all
def perform
each_sub_batch do |sub_batch|
sub_batch.update_all(expires_at: EXPIRES_AT_DEFAULT)
end
end
def perform; end
end
end
end
Loading