You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sqm-dashboards/app/models/school.rb

14 lines
261 B

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