Sha256: 2a84ef7abb1da7d59d43879af5adb26f2b9aff2d5b2c126fae783dcda454770c
Contents?: true
Size: 391 Bytes
Versions: 6
Compression:
Stored size: 391 Bytes
Contents
module Gaku class ExternalSchoolRecord < ActiveRecord::Base belongs_to :school belongs_to :student has_many :simple_grades, -> { where("school_id = #{school_id} AND student_id = #{student_id}") }, class_name: 'Gaku::SimpleGrade', dependent: :destroy has_many :achievements validates :school, :student, presence: true end end
Version data entries
6 entries across 6 versions & 2 rubygems