# encoding: utf-8 teams = [ [ 'barcelona', 'FC Barcelona', 'city:barcelona' ], [ 'madrid', 'Real Madrid', 'city:madrid' ], [ 'atletico', 'Atlético Madrid', 'city:madrid' ], [ 'malaga', 'FC Málaga|Málaga CF|CF Málaga', 'city:malaga' ], [ 'valencia', 'FC Valencia|CF Valencia', 'city:valencia' ], [ 'athletic', 'Athletic Bilbao', 'city:bilbao' ] ] es = Country.find_by_key!( 'es' ) Team.create_from_ary!( teams, club: true, country: es ) ## The End #################