class Department < ApplicationRecord
  has_many :teachers
  has_one :admin
  extend ActiveModel::Callbacks
  define_model_callbacks :create, :update, :destroy, :commit, :rollback
  include GammaRay::ActiveRecord::Model
  has_autolog related_objects: ["admin"]
end
