Welcome to mirror list, hosted at ThFree Co, Russian Federation.

non_existing_records_helper.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1d4368c8ddf3a6cacf7e6ab0670f05e450f81010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module NonExistingRecordsHelpers
  # Max value for PG `serial` type: https://www.postgresql.org/docs/12/datatype-numeric.html
  ACTIVE_MODEL_INTEGER_MAX = 2147483647

  def non_existing_record_id
    ACTIVE_MODEL_INTEGER_MAX
  end
  alias_method :non_existing_record_iid, :non_existing_record_id
  alias_method :non_existing_record_access_level, :non_existing_record_id
end