Sha256: 5d963e4eaa949f41252e8248ea4c9a87fc7ddea120906138afd0d45ea3d10c12
Contents?: true
Size: 561 Bytes
Versions: 27
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true module Decidim # Scope types allows to use different types of scopes in participatory process # (municipalities, provinces, states, countries, etc.) class ScopeType < ApplicationRecord belongs_to :organization, foreign_key: "decidim_organization_id", class_name: "Decidim::Organization", inverse_of: :scope_types has_many :scopes, foreign_key: "decidim_scope_type_id", class_name: "Decidim::Scope", inverse_of: :scope_type validates :name, presence: true end end
Version data entries
27 entries across 27 versions & 2 rubygems