return Time.now.advance(:days => period).to_date
end
+ protected
+ def validate
+ errors.add(:game_genre_id, "does not exist in the database") if genre.nil?
+ errors.add(:game_platform_id, "does not exist in the database") if platform.nil?
+ end
+
end