12 lines
347 B
Ruby
12 lines
347 B
Ruby
class EmployeeAcademic
|
|
include Mongoid::Document
|
|
include Mongoid::Timestamps
|
|
|
|
field :academic_type #type1 -> bachelors, type2 -> masters, type3 -> phd, type4 -> course
|
|
field :degree_name, localize: true
|
|
field :start_date, type: DateTime
|
|
field :end_date, type: DateTime
|
|
field :note, localize: true
|
|
|
|
belongs_to :employee_profile
|
|
end |