school dependencies

This commit is contained in:
Jared Cosulich 2017-10-18 14:06:51 -04:00
parent a66046500b
commit 123b611079

View file

@ -1,9 +1,9 @@
class School < ApplicationRecord
has_many :schedules, dependent: true
has_many :recipient_lists, dependent: true
has_many :schedules, dependent: :destroy
has_many :recipient_lists, dependent: :destroy
belongs_to :district
has_many :recipients, dependent: true
has_many :school_categories, dependent: true
has_many :recipients, dependent: :destroy
has_many :school_categories, dependent: :destroy
validates :name, presence: true