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

@@ -25,7 +25,7 @@ class Map < ActiveRecord::Base
FasterCSV.parse(open(csv_filename), :headers => true,
:header_converters => [:downcase, :symbol]).each do |row|
map = self.find_or_initialize_by_name(
"#{row[:city]}, #{row[:country]}"
"#{row[:city]}, #{row[:region]}"
)
map.save
if block_given?