Add Score and Stage model
This commit is contained in:
parent
7252c720ae
commit
03f362a7fe
|
|
@ -0,0 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class Score < ApplicationRecord
|
||||
belongs_to :match
|
||||
belongs_to :team
|
||||
end
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue