-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathseed.rb
More file actions
25 lines (24 loc) · 692 Bytes
/
seed.rb
File metadata and controls
25 lines (24 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
20.times do |x|
Truck.create(name: @names.shuffle.pop, latitude: "41.8#{rand(5..9)}#{rand(1..9)}400", longitude: "-87.6#{rand(2..5)}#{rand(1..9)}3044", url: "http://www.test.com")
end
@names = ["Jerk 312",
"Fat Shallot",
"Toasty Cheese",
"Yum Dum Truck",
"Babycakes Gourment",
"The Roost",
"Beavers Donuts",
"Caponies Express",
"Schnitzel King",
"Two Italians",
"Duck n' Roll",
"ChiTown Tamale",
"La Adelita",
"Samich Box",
"Chubby Wieners",
"Curried",
"Ja' Grill",
"Haute Sausage",
"Taquero Fusion",
"Steakwich",
"Wagya Wagon"]