survey/app/models/survey_answer.rb

9 lines
154 B
Ruby

class SurveyAnswer
include Mongoid::Document
include Mongoid::Timestamps
field :user, type: BSON::ObjectId
belongs_to :questionnaire_survey
end