diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/bracket.rb | 4 | ||||
-rw-r--r-- | app/models/bracket_match.rb | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/app/models/bracket.rb b/app/models/bracket.rb new file mode 100644 index 0000000..e8d9c5a --- /dev/null +++ b/app/models/bracket.rb @@ -0,0 +1,4 @@ +class Bracket < ActiveRecord::Base + belongs_to :user + belongs_to :tournament +end diff --git a/app/models/bracket_match.rb b/app/models/bracket_match.rb new file mode 100644 index 0000000..823bc40 --- /dev/null +++ b/app/models/bracket_match.rb @@ -0,0 +1,5 @@ +class BracketMatch < ActiveRecord::Base + belongs_to :bracket + belongs_to :match + belongs_to :predicted_winner +end |