initial commit

This commit is contained in:
loos
2014-01-18 14:49:59 -06:00
parent e76f6e84d0
commit bb1c83fb19
58 changed files with 930 additions and 0 deletions
BIN
View File
Binary file not shown.
View File
+11
View File
@@ -0,0 +1,11 @@
task :load_recyclery_bike_db => :environmnent do
puts "destroying old bike data"
Bike.all.destroy
file = "lib/assets/recyclery_bike_log.txt"
puts "loading bike database from #{file}"
File.foreach(file).do |line|
data = line.split("|")
Bike.create(date: data[1])
end
end