Sha256: e811a55fca961a4d898b8c842b8576f80d6465e7071df3ff4f3ef97f63a6d227
Contents?: true
Size: 647 Bytes
Versions: 4
Compression:
Stored size: 647 Bytes
Contents
# frozen_string_literal: true module Decidim module Consultations class ResponseGroup < ApplicationRecord belongs_to :question, foreign_key: "decidim_consultations_questions_id", class_name: "Decidim::Consultations::Question", counter_cache: :response_groups_count, inverse_of: :response_groups has_many :responses, foreign_key: "decidim_consultations_response_group_id", class_name: "Decidim::Consultations::Response", inverse_of: :response_group, dependent: :restrict_with_error end end end
Version data entries
4 entries across 4 versions & 1 rubygems