personal-activity/app/models/activity.rb

23 lines
591 B
Ruby
Raw Normal View History

2020-02-04 08:39:26 +00:00
class Activity
include Mongoid::Document
include Mongoid::Timestamps
#include Mongoid::Attributes::Dynamic
#include Admin::PersonalActivitiesHelper
include OrbitModel::Status
include MemberHelper
#include Slug
2020-02-05 07:05:43 +00:00
# Language
2020-02-04 08:39:26 +00:00
field :activity_name, type: String, localize: true
field :activity_organizer, type: String, localize: true
field :activity_area, type: String, localize: true
2020-02-05 07:05:43 +00:00
# Basic
field :year, type: String
2020-02-04 08:39:26 +00:00
field :activity_start_date, type: DateTime
field :activity_end_date, type: DateTime
field :note, type: String
belongs_to :member_profile
end