mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
school dependencies
This commit is contained in:
parent
a66046500b
commit
123b611079
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue