db/mx/teams.rb in sportdb-0.3.0 vs db/mx/teams.rb in sportdb-0.3.1
- old
+ new
@@ -19,8 +19,10 @@
[ 'toluca', 'Toluca', 'Toluca' ],
[ 'tigres', 'Tigres UANL', 'San Nicolás de los Garza' ],
[ 'pumas', 'Pumas UNAM', 'México' ]
]
-Team.create_from_ary!( teams )
+mx = Country.find_by_key!( 'mx' )
-Prop.create!( :key => 'db.mx.teams.version', :value => '1' )
+Team.create_from_ary!( teams, club: true, country: mx )
+
+Prop.create!( key: 'db.mx.teams.version', value: '1' )
\ No newline at end of file