Daniel Schädler
fc7409b18c
Only allow positive powers of two for playoff_teams_amount
2019-06-11 22:36:29 +02:00
Daniel Schädler
e3e96c0c1d
Add two new parameters to tournament
...
instant_finalists_amount is the amount of teams that instantly are in
the finals after the group stage ends.
intermediate_round_participants_amount is the amount of teams that have
a chance to advance after group stage but must play a relegation game to
actually do so.
Both of these values need to match, so that
instant_finalists_amount + (intermediate_round_participants_amount / 2)
is a power of 2. Or to be more precise, the power of two that is saved
in playoff_teams_amount of the tournament.
2019-06-11 22:36:29 +02:00
Daniel Schädler
278deaf304
Add field to tournament containing playoff_teams_amount
...
This field represents how many teams advance into playoff stage after
the group stage has ended.
2019-06-11 22:36:29 +02:00
Daniel Schädler
c1dc43948b
Fix typo in received_points
2019-06-05 09:49:21 +02:00
Thor77
d7a8504b45
Replace deprecated Faker::Dog
2019-04-03 09:45:56 +02:00
Daniel Schädler
a155d7d7e2
Save Matches and Stages
2018-12-11 16:35:14 +01:00
Daniel Schädler
4142f473f0
Make seeds.rb beautiful
2018-12-11 16:21:52 +01:00
Daniel Schädler
68f9b3b2b3
Change Score to MatchScore & MatchScore score attribute to points
...
This is done to improve the naming and therefore make things easier to understand.
2018-11-30 14:15:48 +01:00
Daniel Schädler
4afa32542e
Change GroupScore attributes
2018-11-30 12:58:13 +01:00
Daniel Schädler
fd02a1ecaf
Add Position to Match in Database
2018-11-29 10:42:49 +01:00
Thor77
2507c782e5
Add database seeds
2018-11-25 23:01:04 +01:00
Thor77
6e1af687ad
Add default for scores.score
2018-11-19 14:41:30 +01:00
Thor77
7252c720ae
Remove unique index from users.provider
2018-11-19 11:47:13 +01:00
Thor77
b424b64422
Rewrite database schema
2018-11-19 11:47:13 +01:00
Thor77
b742b3ed67
Move group scores into separate table
2018-11-19 11:47:12 +01:00
Thor77
07eb561f77
Implement Tournament-Team relation
2018-11-19 11:47:12 +01:00
Thor77
1d463b55c3
Fix cascade symbol invalid
2018-11-19 11:47:12 +01:00
Thor77
244da7a2e6
Add on_delete cascade attr to user-tournament fk
2018-11-19 11:47:11 +01:00
Thor77
d89c24a645
Add relation between Tournament and User
2018-11-19 11:47:11 +01:00
Thor77
683423b06a
Add unique index to tournament code
2018-11-19 11:47:11 +01:00
Thor77
c9421e6d42
Add Tournament model
2018-11-11 21:31:47 +01:00
Thor77
821c40c35c
Merge initial schema migrations
2018-11-11 19:57:59 +01:00
Thor77
5774b2463a
Format imported code
2018-11-11 19:39:13 +01:00
Daniel Schädler
d5d61ec0a2
Add some Models
2018-11-11 18:52:15 +01:00
Thor77
2a20c02f56
Apply rubocop formatting
2018-11-10 15:50:27 +01:00
Thor77
3f8ca715cc
Add devise token authentication
2018-11-10 15:46:02 +01:00
Thor77
9d51a36b0a
Initial commit
2018-10-30 15:52:46 +01:00