aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/seminar.rb
blob: c18aa864336b6bb87c3a4e880e039beea8d645ad (plain) (blame)
1
2
3
4
5
6
# frozen_string_literal: true

class Seminar < ActiveRecord::Base
  has_many :sections, inverse_of: :seminar, autosave: true, dependent: :destroy
  has_many :sessions, through: :sections
end