debian-mirror-gitlab/lib/gitlab/database/migration_helpers/convert_to_bigint.rb
2023-06-20 00:43:36 +05:30

21 lines
586 B
Ruby

# frozen_string_literal: true
module Gitlab
module Database
module MigrationHelpers
module ConvertToBigint
# This helper is extracted for the purpose of
# https://gitlab.com/gitlab-org/gitlab/-/issues/392815
# so that we can test all combinations just once,
# and simplify migration tests.
#
# Once we are done with the PK conversions we can remove this.
def com_or_dev_or_test_but_not_jh?
return true if Gitlab.dev_or_test_env?
Gitlab.com? && !Gitlab.jh?
end
end
end
end
end