Sha256: 3adafa1b2e1bd6ab642f6e5dc3b0105ef629ca0c24e16de25984945d9bfdc53c

Contents?: true

Size: 453 Bytes

Versions: 5

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true
module Decidim
  # Organizations are one of the main models of Decidim. In a single Decidim
  # installation we can find many organizations and each of them can start
  # their own participatory processes.
  class Organization < ApplicationRecord
    has_many :participatory_processes, foreign_key: "decidim_organization_id", class_name: Decidim::ParticipatoryProcess
    validates :name, :host, uniqueness: true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-core-0.0.1.alpha9 app/models/decidim/organization.rb
decidim-core-0.0.1.alpha8 app/models/decidim/organization.rb
decidim-core-0.0.1.alpha7 app/models/decidim/organization.rb
decidim-core-0.0.1.alpha6 app/models/decidim/organization.rb
decidim-core-0.0.1.alpha5 app/models/decidim/organization.rb