2014-10-06 05:55:25 +00:00
|
|
|
class SurveyAnswer
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
|
2015-11-27 11:55:47 +00:00
|
|
|
field :user, type: BSON::ObjectId
|
2016-08-18 13:18:02 +00:00
|
|
|
field :scored_points, type: Integer, :default => 0
|
2015-11-27 11:55:47 +00:00
|
|
|
|
2014-10-06 05:55:25 +00:00
|
|
|
belongs_to :questionnaire_survey
|
|
|
|
|
|
|
|
end
|