memberlog/app/models/member_log.rb

18 lines
435 B
Ruby
Raw Normal View History

2017-02-13 17:27:57 +00:00
class MemberLog
include Mongoid::Document
include Mongoid::Timestamps
include MemberHelper
include Slug
field :todo, as: :slug_title, type: String, localize: true
field :complete, localize: true
field :excuse, localize: true
field :finish, :type => Boolean, :default => false
field :checkout, :type => DateTime
2017-02-22 11:00:53 +00:00
field :dayoff, :type => Boolean, :default => false
2017-02-13 17:27:57 +00:00
belongs_to :member_profile
has_many :dayoffs
end