16 lines
236 B
Ruby
16 lines
236 B
Ruby
|
class Event
|
||
|
include Mongoid::Document
|
||
|
include Mongoid::Timestamps
|
||
|
|
||
|
field :title
|
||
|
field :description
|
||
|
field :start_year
|
||
|
field :end_year
|
||
|
field :start_month
|
||
|
field :end_month
|
||
|
field :start_date
|
||
|
field :end_date
|
||
|
|
||
|
belongs_to :cal
|
||
|
|
||
|
end
|