memberlog/app/models/member_log.rb

17 lines
382 B
Ruby

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
belongs_to :member_profile
has_many :dayoffs
end