Sha256: b9a925b7f5b98d1b336113fe197154c316335113e74ef68a34714175c43d88d2

Contents?: true

Size: 512 Bytes

Versions: 3

Compression:

Stored size: 512 Bytes

Contents

1000.times do |i|
  t = (1.year.ago + rand(1.year.to_i))
  User.create name: "User #{i}", 
    email: "user+#{i}@example.org",
    created_at: t,
    updated_at: t, 
    value: (rand * 100).to_i

end

10000.times do |i|
  amount = rand(10_000)
  date = Time.now - 1.year.to_i * (rand ** 3)
  Transaction.create date: date, amount_in_cents: amount
end

# Add noise
1000.times do |i|
  amount = rand(1_000_000)
  date = (1.year.ago + rand(1.year.to_i))
  Transaction.create date: date, amount_in_cents: amount
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prosperity-0.0.11 spec/dummy/db/seeds.rb
prosperity-0.0.10 spec/dummy/db/seeds.rb
prosperity-0.0.9 spec/dummy/db/seeds.rb