mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-11 00:10:35 -07:00
recipient lists
This commit is contained in:
parent
ab6cefd055
commit
37e01c024b
24 changed files with 491 additions and 1 deletions
6
app/models/recipient_list.rb
Normal file
6
app/models/recipient_list.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class RecipientList < ApplicationRecord
|
||||
belongs_to :school
|
||||
|
||||
validates :name, presence: true
|
||||
validates :recipient_ids, presence: true
|
||||
end
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
class School < ApplicationRecord
|
||||
has_many :recipient_lists
|
||||
belongs_to :district
|
||||
has_many :recipients
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue