diff --git a/spec/factories/lettings_log.rb b/spec/factories/lettings_log.rb index b71362647..c85b4b00a 100644 --- a/spec/factories/lettings_log.rb +++ b/spec/factories/lettings_log.rb @@ -191,7 +191,7 @@ FactoryBot.define do discarded_at { Time.zone.now } end trait :imported do - old_id { rand(1...99_999) } + old_id { Random.hex } end created_at { Time.zone.today } updated_at { Time.zone.today } diff --git a/spec/factories/sales_log.rb b/spec/factories/sales_log.rb index 4835d738e..e930f3b2a 100644 --- a/spec/factories/sales_log.rb +++ b/spec/factories/sales_log.rb @@ -156,7 +156,7 @@ FactoryBot.define do discarded_at { Time.zone.now } end trait :imported do - old_id { rand(1...99_999) } + old_id { Random.hex } end end end