Sha256: e928b81e5f2e08b386f0201fa8ad91489f24c804d45d883393f74bb953d0c7bb

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

# encoding: utf-8

teams = [
 [ 'america',   'Club América|America de Mexico',        'city:mexico' ],
 [ 'atlante',   'Atlante',             'city:cancun' ],
 [ 'atlas',     'Atlas',               'city:guadalajara' ],
 [ 'chivas',    'Guadalajara Chivas',  'city:guadalajara' ],
 [ 'cruzazul',  'Cruz Azul',           'city:mexico' ],
 [ 'jaguares',  'Jaguares de Chiapas', 'city:tuxtla' ],
 [ 'leon',      'Club León|Club Leon',           'city:leon' ],
 [ 'monarcas',  'Monarcas Morelia|Atletico Monarcas Morelia',    'city:morelia' ],
 [ 'monterrey', 'Monterrey|CF Monterrey ',           'city:monterrey' ],
 [ 'pachuca',   'Pachuca',             'city:pachuca' ],
 [ 'puebla',    'Puebla F.C. ',        'city:puebla' ],
 [ 'queretaro', 'Querétaro F.C.',      'city:queretaro' ],
 [ 'sanluis',   'Club  San Luis',      'city:sanluispotosi' ],
 [ 'slaguna',   'Santos Laguna',       'city:torreon' ],
 [ 'tijuana',   'Club Tijuana',        'city:tijuana' ],
 [ 'toluca',    'Toluca|Deportivo Toluca',              'city:toluca' ],
 [ 'tigres',    'Tigres UANL',         'city:sannicolas' ],
 [ 'pumas',     'Pumas UNAM',          'city:mexico' ]
]

mx = Country.find_by_key!( 'mx' )

Team.create_from_ary!( teams, club: true, country: mx )

## The End
#################

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sportdb-0.9.1 db/mx/teams.rb
sportdb-0.9.0 db/mx/teams.rb