Commit Graph

184 Commits

Author SHA1 Message Date
Daniel Schädler 7ba1f98fb4 Implements Adding Tournaments to Database 2018-11-29 11:58:27 +01:00
Daniel Schädler 26bcc3dc88 Implement Adding Playoffs to a tournament 2018-11-29 11:10:15 +01:00
Daniel Schädler 7f243b06a2 Implement Utils Class 2018-11-29 11:03:44 +01:00
Daniel Schädler 1c318cde1a Add State to Model 2018-11-29 10:47:17 +01:00
Thor77 4c05a7222e
Use deserialize_params helper 2018-11-25 22:55:49 +01:00
Thor77 0a583ebe53
Remove unused match_params 2018-11-25 22:55:49 +01:00
Thor77 9d4d39c135
Make Team.belongs_to :tournament optional
necessary for testing TeamController building relationship on create
2018-11-25 22:55:49 +01:00
Thor77 e81ef81150
Add TournamentsController 2018-11-25 22:55:48 +01:00
Thor77 d1f66b18d4
Add tournament serializers
SimpleTournamentSerializer excludes relationships and should be used for
listings
2018-11-25 22:55:48 +01:00
Thor77 fecdb7db2d
Add deserialize_params helper 2018-11-25 22:55:48 +01:00
Thor77 92de7b8a57
Fix rubocop Style/MethodDefParentheses 2018-11-24 19:20:53 +01:00
Thor77 0308dc121f
Add TeamsController and corresponding specs 2018-11-24 19:18:03 +01:00
Thor77 8b3b8352e5
Delegate owner attribute to tournament 2018-11-24 19:16:04 +01:00
Thor77 668584c68b
Add require_owner! filter action 2018-11-24 19:14:31 +01:00
Thor77 bc88ddc54d Add serializer for Match, Score and Team 2018-11-21 18:57:59 +01:00
Thor77 6c24180715 Add MatchesController and specs for it 2018-11-21 18:57:16 +01:00
Thor77 673e12c052 Validate Stage xor Group present in match 2018-11-20 16:03:58 +01:00
Thor77 552566dd2e Validate match has only 2 scores 2018-11-19 14:57:55 +01:00
Thor77 0bcd3a88a9 Validate presence of name 2018-11-19 14:45:01 +01:00
Thor77 65abada8b2
Modify model associations to map to new schema 2018-11-19 11:47:14 +01:00
Thor77 03f362a7fe
Add Score and Stage model 2018-11-19 11:47:14 +01:00
Thor77 21103588a2
Remove unused Group- and PlayoffStage models
because they are now both represented by the Stage model
2018-11-19 11:47:13 +01:00
Thor77 556f326acd
Alias Tournament.user to Tournament.owner 2018-11-19 11:47:12 +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 20fafab009
Generate tournament code if not given 2018-11-19 11:47:11 +01:00
Thor77 d89c24a645
Add relation between Tournament and User 2018-11-19 11:47:11 +01:00
Daniel Schädler a13b8e0c72 Change neededGames to needed_games 2018-11-12 16:45:51 +01:00
Thor77 c9421e6d42
Add Tournament model 2018-11-11 21:31:47 +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