Class: SportDb::Stats

Inherits:
Object
  • Object
show all
Includes:
Models
Defined in:
lib/sportdb/models/stats.rb

Instance Method Summary collapse

Instance Method Details

#tablesObject



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/sportdb/models/stats.rb', line 7

def tables
  puts "  #{League.count} leagues  /  #{Season.count} seasons"
  puts "  #{Event.count} events (league+season recs)  /  #{Round.count} rounds  /  #{Group.count} groups  /  #{Stage.count} stages"
  puts "  #{Team.count} teams"
  puts "  #{Match.count} matches"
  puts "  #{Badge.count} badges"

  puts "  #{Lineup.count} lineups (person+team+event recs)"
  puts "  #{Goal.count} goals (person+match recs)"

  puts "  #{Assoc.count}  assocs|orgs"
  puts "  #{Ground.count}  grounds|stadiums"
end