Orbit/vendor/built_in_modules/calendar/app/models/event.rb

26 lines
622 B
Ruby
Raw Normal View History

2012-09-14 13:59:20 +00:00
class Event
include Mongoid::Document
include Mongoid::Timestamps
field :title
2012-09-16 20:34:03 +00:00
field :note
field :start_year, type: Integer
field :end_year, type: Integer
field :start_month, type: Integer
field :end_month, type: Integer
field :start_date, type: Integer
field :end_date, type: Integer
field :start_time, type: Float
field :start_am_pm
field :end_time, type: Float
field :end_am_pm
2012-10-08 08:47:56 +00:00
field :start_week, type: Integer
field :end_week, type: Integer
field :final_start_time, type: Date
field :final_end_time, type: Date
field :total_days, type: Integer
2012-10-16 13:50:46 +00:00
field :all_day, type: Boolean
2012-09-14 13:59:20 +00:00
belongs_to :cal
end