Verified Commit a7d3e195 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

feat(semester-process): make SemesterProcessVolunteer a nested attribute

- so that it can be treated as a child of this in forms
parent b5456f7f
......@@ -6,6 +6,8 @@ class SemesterProcess < ApplicationRecord
inverse_of: 'semester_process_reminder_mail_posted', optional: true
has_many :semester_process_volunteers, dependent: :destroy
accepts_nested_attributes_for :semester_process_volunteers, allow_destroy: true
has_many :volunteers, through: :semester_process_volunteers
has_many :semester_feedbacks, through: :semester_process_volunteers
has_many :hours, through: :semester_process_volunteers
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment