survey/app/models/survey_answer.rb

12 lines
356 B
Ruby
Raw Normal View History

2014-10-06 05:55:25 +00:00
class SurveyAnswer
include Mongoid::Document
include Mongoid::Timestamps
2021-07-08 13:31:27 +00:00
include Mongoid::Attributes::Dynamic
field :user, type: BSON::ObjectId
field :scored_points, type: Integer, :default => 0
2016-10-29 11:33:54 +00:00
field :individual_total, type: Array, :default => []
2021-07-08 13:31:27 +00:00
field :select_question, type: Array, :default => []
2014-10-06 05:55:25 +00:00
belongs_to :questionnaire_survey
end