sqm-dashboards/app/models/school.rb
2017-03-16 16:09:54 -04:00

13 lines
261 B
Ruby

class School < ApplicationRecord
has_many :schedules
has_many :recipient_lists
belongs_to :district
has_many :recipients
has_many :school_categories
validates :name, presence: true
include FriendlyId
friendly_id :name, :use => [:slugged]
end