fix bikeloader

This commit is contained in:
loos
2014-01-18 14:52:22 -06:00
parent bb1c83fb19
commit 2b8d8c9f0a
3 changed files with 148 additions and 2 deletions
Binary file not shown.
+1 -2
View File
@@ -3,9 +3,8 @@ task :load_recyclery_bike_db => :environmnent do
Bike.all.destroy
file = "lib/assets/recyclery_bike_log.txt"
puts "loading bike database from #{file}"
File.foreach(file).do |line|
File.foreach(file) do |line|
data = line.split("|")
Bike.create(date: data[1])
end
end