recipient lists

This commit is contained in:
Jared Cosulich 2017-03-02 12:00:40 -05:00
parent ab6cefd055
commit 37e01c024b
24 changed files with 491 additions and 1 deletions

View file

@ -0,0 +1,6 @@
class RecipientList < ApplicationRecord
belongs_to :school
validates :name, presence: true
validates :recipient_ids, presence: true
end

View file

@ -1,4 +1,5 @@
class School < ApplicationRecord
has_many :recipient_lists
belongs_to :district
has_many :recipients