Sha256: 2e2bdd78e36c7f6dc1aff6bb4d2cc04a5c7aeba7cee0e87a1da1c4a058784148
Contents?: true
Size: 369 Bytes
Versions: 2
Compression:
Stored size: 369 Bytes
Contents
User.scoped.destroy_all Invoice.scoped.destroy_all 1.upto(200) do |i| total_paid = 100 + Random.rand(100) total_charged = 100 + Random.rand(100) invoiced_on = Random.rand(30).days.ago Invoice.create!(title: "Invoice ##{i}", total_paid: total_paid, total_charged: total_charged, invoiced_on: invoiced_on, paid: total_paid >= total_charged) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
query_report-1.0.4 | test/dummy/db/seed.rb |
query_report-1.0.3 | test/dummy/db/seed.rb |