Class: Workarea::LegacyOrdersSeeds

Inherits:
Object
  • Object
show all
Defined in:
app/seeds/workarea/legacy_orders_seeds.rb

Instance Method Summary collapse

Instance Method Details

#performObject



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