Skip to content

Commit a5e5fdf

Browse files
committed
fix(seeds): generate workshops within 3 months, not 12
1 parent 35a1777 commit a5e5fdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

db/seeds.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
Rails.logger.info 'Creating 100 future workshops...'
4848
future_workshops = []
4949
100.times do
50-
months_ahead = rand(1..12)
50+
months_ahead = rand(1..3)
5151
start = Time.zone.now + months_ahead.months + rand(0..28).days + rand(0..23).hours
5252
workshop = Fabricate(:workshop,
5353
title: 'Workshop',

0 commit comments

Comments
 (0)