Sha256: 29e440e91afd606eef83be05912c68ace9d9ea2c6195e3e6c6adf2680026d1d3
Contents?: true
Size: 610 Bytes
Versions: 26
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true module Decidim module Consultations class Response < ApplicationRecord belongs_to :question, foreign_key: "decidim_consultations_questions_id", class_name: "Decidim::Consultations::Question", counter_cache: :responses_count, inverse_of: :responses has_many :votes, foreign_key: "decidim_consultations_response_id", class_name: "Decidim::Consultations::Vote", inverse_of: :response, dependent: :restrict_with_error end end end
Version data entries
26 entries across 26 versions & 1 rubygems