15 lines
323 B
Ruby
15 lines
323 B
Ruby
class Dayoff < PersonalPluginIntro
|
|
|
|
include Mongoid::Document
|
|
include Mongoid::Timestamps
|
|
# validates :dayoff_description, :presence => true
|
|
|
|
belongs_to :member_log, :dependent => :destroy
|
|
|
|
|
|
field :dayoff_description, localize: true
|
|
field :start_dayoff, :type => DateTime
|
|
field :end_dayoff, :type => DateTime
|
|
|
|
|
|
end |