Class: Workarea::LegacyOrdersSeeds
- Inherits:
-
Object
- Object
- Workarea::LegacyOrdersSeeds
- Defined in:
- app/seeds/workarea/legacy_orders_seeds.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/seeds/workarea/legacy_orders_seeds.rb', line 3 def perform puts "Adding legacy orders..." users.each do |user| rand(1..5).times { Workarea::LegacyOrder.create!(order(user)) } end 10.times { Workarea::LegacyOrder.create!(order) } end |