asia_database/app/models/asia_academy.rb

8 lines
260 B
Ruby
Raw Permalink Normal View History

2023-05-26 14:17:05 +00:00
class AsiaAcademy
include Mongoid::Document
include Mongoid::Timestamps
include Slug
field :academy_name, :type => String, :default => "", :localize => true, :as => :slug_title
has_many :asia_departments
2023-05-27 09:54:38 +00:00
has_many :asia_teachers, :order => 'ukey DESC'
2023-05-26 14:17:05 +00:00
end