Integer range error when populating project authorizations
https://sentry.gitlap.com/gitlab/gitlabcom/issues/17929/
PG::NumericValueOutOfRange: ERROR: integer out of range
app/models/project_authorization.rb:15:in `block in insert_authorizations'
connection.execute <<-EOF.strip_heredoc
app/models/project_authorization.rb:10:in `each'
rows.each_slice(per_batch) do |slice|
app/models/project_authorization.rb:10:in `each_slice'
rows.each_slice(per_batch) do |slice|
app/models/project_authorization.rb:10:in `insert_authorizations'
rows.each_slice(per_batch) do |slice|
app/services/users/refresh_authorized_projects_service.rb:81:in `block in update_authorizations'
ProjectAuthorization.insert_authorizations(add) unless add.empty?
...
(57 additional frame(s) were not displayed)
ActiveRecord::StatementInvalid: PG::NumericValueOutOfRange: ERROR: integer out of range
: INSERT INTO project_authorizations (user_id, project_id, access_level)
VALUES (840012, 2000279, 40)
ActiveRecord::StatementInvalid: PG::NumericValueOutOfRange: ERROR: integer out of range
: INSERT INTO project_authorizations (user_id, project_id, access_level)
VALUES (840012, 2000279, 40)