我的enrollment.rb
attr_accessible :semester_id
has_many :studentpayments
has_many :student_deductions
我的studentpayment.rb
belongs_to :enrollment
我的student_deduction.rb
belongs_to :enrollment
我如何根据 has 或 has 获得唯一semester_id
的enrollment
注册studentpayment
基础student_deduction
?