Sha256: 6c64d1ac401d0f8acf720689bc77b6e106616f209ea0fed51be4884eeb8f2b92

Contents?: true

Size: 595 Bytes

Versions: 21

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class ParticipatoryProcessGroup < ApplicationRecord
    include Decidim::Resourceable

    has_many :participatory_processes,
             foreign_key: "decidim_participatory_process_group_id",
             class_name: "Decidim::ParticipatoryProcess",
             inverse_of: :participatory_process_group,
             dependent: :nullify

    belongs_to :organization,
               foreign_key: "decidim_organization_id",
               class_name: "Decidim::Organization"

    mount_uploader :hero_image, Decidim::HeroImageUploader
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.12.0.pre app/models/decidim/participatory_process_group.rb