With the new boxscore json files thanks to albertlyu/ncaab-pbp#4, we'll need to generate new ActiveRecord models for teamgames and playergames as well as recreate and reseed the players table in the database. Modify seeds.rb with care, as we don't want to re-seed the very large plays table.
With the new boxscore json files thanks to albertlyu/ncaab-pbp#4, we'll need to generate new ActiveRecord models for
teamgames
andplayergames
as well as recreate and reseed theplayers
table in the database. Modifyseeds.rb
with care, as we don't want to re-seed the very largeplays
table.We can generate the models like so:
But the Playergame model is a priority over the Teamgame model.
For the Player model, add player_position and player_uniform_number.