Commit Graph

10 Commits

Author SHA1 Message Date
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 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
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 8b3b8352e5
Delegate owner attribute to tournament 2018-11-24 19:16:04 +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 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 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