Sha256: 46d4c05a4f5b3afca3350e067fc852dfbde163ef7afe17cd16a7f5ad1294de7f

Contents?: true

Size: 509 Bytes

Versions: 5

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true
module SocialNetworking
  # A question that is posed to participants when a profile is being created or
  # updated.
  class ProfileQuestion < ActiveRecord::Base
    belongs_to :group,
               class_name: "ThinkFeelDoEngine::Group",
               foreign_key: :group_id

    has_many :profile_answers,
             class_name: "SocialNetworking::ProfileAnswer",
             foreign_key: :social_networking_profile_question_id,
             dependent: :destroy
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
social_networking-0.13.3 app/models/social_networking/profile_question.rb
social_networking-0.13.2 app/models/social_networking/profile_question.rb
social_networking-0.13.1 app/models/social_networking/profile_question.rb
social_networking-0.13.0 app/models/social_networking/profile_question.rb
social_networking-0.12.0 app/models/social_networking/profile_question.rb