init activity model
This commit is contained in:
parent
e00e7ea242
commit
1e2b121738
|
@ -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
|
Loading…
Reference in New Issue