asia_database/app/models/asia_department.rb

8 lines
241 B
Ruby
Raw Normal View History

2023-05-26 14:17:05 +00:00
class AsiaDepartment
include Mongoid::Document
include Mongoid::Timestamps
include Slug
field :department_name, :type => String, :default => "", :localize => true, :as => :slug_title
belongs_to :asia_academy
has_many :asia_teachers
end