survey/app/models/survey_answer.rb

10 lines
207 B
Ruby
Raw Permalink Normal View History

2014-10-06 05:55:25 +00:00
class SurveyAnswer
include Mongoid::Document
include Mongoid::Timestamps
field :user, type: BSON::ObjectId
field :scored_points, type: Integer, :default => 0
2014-10-06 05:55:25 +00:00
belongs_to :questionnaire_survey
end