Sha256: 07528ddf4e267314ed2e4ba54aac8ba638aa0f08e6679ff4ca31bf679bf45c7f
Contents?: true
Size: 767 Bytes
Versions: 7
Compression:
Stored size: 767 Bytes
Contents
module SportDb class Stats include SportDb::Models def tables puts "Stats:" puts " #{Event.count} events / #{Round.count} rounds / #{Group.count} groups" puts " #{League.count} leagues / #{Season.count} seasons" puts " #{Country.count} countries / #{Region.count} regions / #{City.count} cities" puts " #{Team.count} teams" puts " #{Game.count} games" puts " #{Badge.count} badges" ## todo: add tags / taggings from worlddb end 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
7 entries across 7 versions & 1 rubygems