mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-11 00:10:35 -07:00
working on schedules
This commit is contained in:
parent
72418edd7c
commit
2fb55a7443
26 changed files with 726 additions and 1 deletions
11
app/models/schedule.rb
Normal file
11
app/models/schedule.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class Schedule < ApplicationRecord
|
||||
belongs_to :school
|
||||
belongs_to :recipient_list
|
||||
belongs_to :question_list
|
||||
|
||||
validates :name, presence: true
|
||||
validates :recipient_list, presence: true
|
||||
validates :question_list, presence: true
|
||||
|
||||
|
||||
end
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
class School < ApplicationRecord
|
||||
has_many :schedules
|
||||
has_many :recipient_lists
|
||||
belongs_to :district
|
||||
has_many :recipients
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue