Sha256: f15e7b8441f988e933b590e9537619f7155e26d729d92380a9c3e32c9110847f
Contents?: true
Size: 1.04 KB
Versions: 6
Compression:
Stored size: 1.04 KB
Contents
module SportDb class Stats include SportDb::Models def tables puts " #{League.count} leagues / #{Season.count} seasons" puts " #{Event.count} events (league+season recs) / #{Round.count} rounds / #{Group.count} groups" puts " #{Team.count} teams" puts " #{Game.count} games" puts " #{Badge.count} badges" puts " #{Track.count} tracks / #{Race.count} races (track+event recs) / #{Run.count} runs" puts " #{Record.count} records (race|run+person recs)" puts " #{Roster.count} rosters (person+team+event recs)" puts " #{Goal.count} goals (person+game recs)" puts " #{Assoc.count} assocs|orgs" puts " #{Ground.count} grounds|stadiums" end ## fix/chek: # move to Prop gem / reuse code from Prop gem def props puts "Props:" Prop.order( 'created_at asc' ).all.each do |prop| puts " #{prop.key} / #{prop.value} || #{prop.created_at}" end end end # class Stats end # module SportDb
Version data entries
6 entries across 6 versions & 1 rubygems