Add Score and Stage model

This commit is contained in:
Thor77 2018-11-18 14:11:47 +01:00
parent 7252c720ae
commit 03f362a7fe
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
2 changed files with 13 additions and 0 deletions

6
app/models/score.rb Normal file
View File

@ -0,0 +1,6 @@
# frozen_string_literal: true
class Score < ApplicationRecord
belongs_to :match
belongs_to :team
end

7
app/models/stage.rb Normal file
View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class Stage < ApplicationRecord
belongs_to :tournament
has_many :matches, dependent: :destroy
has_many :groups, dependent: :destroy
end