Set up association and models

This commit is contained in:
Rishabh Singh 2019-08-17 18:10:27 +05:30
parent a1ce39643b
commit c9ae859bcf
5 changed files with 32 additions and 1 deletions

View file

@ -9,6 +9,7 @@ class Program < ApplicationRecord
has_many :cfps, dependent: :destroy
has_many :event_types, dependent: :destroy
has_many :booth_types, dependent: :destroy
has_many :tracks, dependent: :destroy
has_many :difficulty_levels, dependent: :destroy
has_many :schedules, dependent: :destroy