sportdb 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ class City < ActiveRecord::Base
4
4
  self.table_name = 'cities'
5
5
 
6
6
  belongs_to :country, :class_name => 'Country', :foreign_key => 'country_id'
7
- belongs_to :region, :class_name => 'Region', :foreign_key => 'country_id'
7
+ belongs_to :region, :class_name => 'Region', :foreign_key => 'region_id'
8
8
 
9
9
  has_many :teams, :class_name => 'Team', :foreign_key => 'city_id'
10
10
 
@@ -5,10 +5,12 @@ class League < ActiveRecord::Base
5
5
 
6
6
  ## leagues also used for conferences, world series, cups, etc.
7
7
  #
8
- ## league (cup/conference/series/etc.) + season (year) = event
8
+ ## league (or cup/conference/series/etc.) + season (or year) = event
9
9
 
10
10
  has_many :events
11
11
  has_many :seasons, :through => :events
12
+
13
+ belongs_to :country, :class_name => 'Country', :foreign_key => 'country_id'
12
14
 
13
15
 
14
16
  def self.create_from_ary!( leagues, more_values={} )
@@ -76,9 +76,9 @@ create_table :rounds do |t|
76
76
  t.string :title, :null => false
77
77
  t.string :title2
78
78
  t.integer :pos, :null => false
79
- ## todo/fix: rename to knockout???
80
79
  ## add new table stage/stages for grouping rounds in group rounds and playoff rounds, for example???
81
- t.boolean :playoff, :null => false, :default => false # "regular" season (group) games or post-season (playoff) knockouts (k.o's)
80
+ ## # "regular" season (group) games or post-season (playoff) knockouts (k.o's)
81
+ t.boolean :knockout, :null => false, :default => false
82
82
  t.datetime :start_at, :null => false
83
83
  t.datetime :end_at # todo: make it required e.g. :null => false
84
84
  t.timestamps
@@ -1,4 +1,4 @@
1
1
 
2
2
  module SportDB
3
- VERSION = '0.5.4'
3
+ VERSION = '0.5.5'
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportdb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 4
10
- version: 0.5.4
9
+ - 5
10
+ version: 0.5.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gerald Bauer