Sha256: 83718d2cc3b0af268d86180c6e7ed639e044f750769c27af609c8433e4db4634
Contents?: true
Size: 574 Bytes
Versions: 41
Compression:
Stored size: 574 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: "scope_type_id", class_name: "Decidim::Scope", inverse_of: :scope_type, dependent: :nullify validates :name, presence: true end end
Version data entries
41 entries across 41 versions & 1 rubygems