Add script to generate basic test data
This commit is contained in:
parent
19458df2dd
commit
de8b641cb3
11
bin/generate_data.rb
Normal file
11
bin/generate_data.rb
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
require 'date'
|
||||||
|
|
||||||
|
providers = ["MR", "LP"]
|
||||||
|
sizes = ["S", "M", "L"]
|
||||||
|
|
||||||
|
date = Date.today
|
||||||
|
|
||||||
|
10_000_000.times do |i|
|
||||||
|
puts "#{(date + i).strftime("%Y-%m-%d")} #{sizes.sample} #{providers.sample}"
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user