class Location::ProgrammeYearGroup
Schema Information
Table name: location_programme_year_groups
id :bigint not null, primary key programme_type :enum not null location_year_group_id :bigint not null
Indexes
idx_on_location_year_group_id_programme_type_904fa3b284 (location_year_group_id,programme_type) UNIQUE index_location_programme_year_groups_on_location_year_group_id (location_year_group_id) index_location_programme_year_groups_on_programme_type (programme_type)
Foreign Keys
fk_rails_... (location_year_group_id => location_year_groups.id) ON DELETE => cascade
Public Instance Methods
Source
# File app/models/location/programme_year_group.rb, line 53 def year_group = location_year_group.value delegate :academic_year, :birth_academic_year, to: :location_year_group end