debian-mirror-gitlab/lib/gitlab/database/migration_helpers/convert_to_bigint.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
586 B
Ruby
Raw Normal View History

2023-05-27 22:25:52 +05:30
# 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?
2023-06-20 00:43:36 +05:30
return true if Gitlab.dev_or_test_env?
Gitlab.com? && !Gitlab.jh?
2023-05-27 22:25:52 +05:30
end
end
end
end
end