educoder/app/models/ec_year_student.rb

8 lines
253 B

6 years ago
class EcYearStudent < ApplicationRecord
belongs_to :ec_year
has_many :ec_student_achievements, dependent: :delete_all
has_many :ec_course_student_scores, dependent: :destroy
has_many :ec_student_score_targets, dependent: :delete_all
end