Browse Source

Update old IDs in factories

pull/1953/head
Kat 3 years ago
parent
commit
4ccc4e879d
  1. 2
      spec/factories/lettings_log.rb
  2. 2
      spec/factories/sales_log.rb

2
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 }

2
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

Loading…
Cancel
Save