init activity model

This commit is contained in:
EricTYL 2020-02-04 16:39:26 +08:00
parent e00e7ea242
commit 1e2b121738
1 changed files with 19 additions and 0 deletions

19
app/models/activity.rb Normal file
View File

@ -0,0 +1,19 @@
class Activity
include Mongoid::Document
include Mongoid::Timestamps
#include Mongoid::Attributes::Dynamic
#include Admin::PersonalActivitiesHelper
include OrbitModel::Status
include MemberHelper
#include Slug
field :year, type: String, localize: true
field :activity_name, type: String, localize: true
field :activity_organizer, type: String, localize: true
field :activity_area, type: String, localize: true
field :activity_start_date, type: DateTime
field :activity_end_date, type: DateTime
field :note, type: String
belongs_to :member_profile
end