From 4ccc4e879d9110973be09ae1df744a05444157bc Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 3 Oct 2023 12:52:38 +0100 Subject: [PATCH] Update old IDs in factories --- spec/factories/lettings_log.rb | 2 +- spec/factories/sales_log.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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