Commit Graph

32 Commits

Author SHA1 Message Date
Daniel Schädler 514bbb553b Add migration for timer 2025-03-09 21:27:38 +01:00
Daniel Schädler 1e899d9944 Add missing migrations 2024-04-07 21:21:33 +02:00
Thor77 28a74654d4 Update to rails 7.0.3
* updated ruby to 2.7.5
* updated rails to 7.0.3
* switched devise_token_auth to git for rails7 support
* ran `rails app:update`
* cleanup .gitlab-ci.yml
* remove unnecessary ci files
* remove unused docker rake task
* fix potential inconsistent image build by using commit images as base
2022-05-19 09:08:36 +02:00
Thor77 f3431e8442
Add bet model
* has_many relations in all belonging models
* specs for relations in existing models
* association specs for bet model
2019-06-17 13:48:49 +02:00
Daniel Schädler 2e336262aa Add state to stage
This state is required to stop the group stage and trigger playoff
generation, it is (for now) irrelevant for anything other than that.
2019-06-13 13:21:24 +02:00
Daniel Schädler 4d5d7bc812 Only allow positive powers of two for playoff_teams_amount 2019-06-13 13:21:24 +02:00
Daniel Schädler f5b610703c 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-13 13:21:24 +02:00
Daniel Schädler bd2af09339 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-05 16:46:06 +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