gitlab-org--gitlab-foss/spec/factories/internal_ids.rb

10 lines
175 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :internal_id do
project
usage { :issues }
last_value { project.issues.maximum(:iid) || 0 }
end
end