diff options
Diffstat (limited to 'app/models/project_authorizations/changes.rb')
-rw-r--r-- | app/models/project_authorizations/changes.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/project_authorizations/changes.rb b/app/models/project_authorizations/changes.rb index 1d717950c1c..1f0cec1a50c 100644 --- a/app/models/project_authorizations/changes.rb +++ b/app/models/project_authorizations/changes.rb @@ -90,6 +90,8 @@ module ProjectAuthorizations log_details(entire_size: attributes.size, batch_size: BATCH_SIZE) if add_delay attributes.each_slice(BATCH_SIZE) do |attributes_batch| + attributes_batch.each { |attrs| attrs[:is_unique] = true } + ProjectAuthorization.insert_all(attributes_batch) perform_delay if add_delay end |