class RulingWeatherCache include Mongoid::Document include Mongoid::Timestamps field :cache field :cache_time , :type=> DateTime, :default=> DateTime.now belongs_to :ruling_weather_setting end