Adding a teensy data set for sussing out the tournament logic

This commit is contained in:
Dan Buch
2012-03-08 07:51:59 -05:00
parent d7f0f6c964
commit 8fca34c7ef
4 changed files with 24 additions and 2 deletions

View File

@@ -10,4 +10,16 @@ namespace :maps do
puts "Seeded map '#{map.name}'"
end
end
desc 'Seed the maps a little bit less!'
task :miniseed => :environment do
require 'app/models/map'
csv_filename = File.expand_path(
'../../db/top-us-cities.csv', File.dirname(__FILE__)
)
Map.import(csv_filename) do |map|
puts "Seeded map '#{map.name}'"
end
end
end