Sha256: 320e23210a80d9d1c88d0fa13e730612b7c19e188add55618fb49758a4377d58
Contents?: true
Size: 521 Bytes
Versions: 9
Compression:
Stored size: 521 Bytes
Contents
# frozen_string_literal: true module Decidim # Scopes are used in some entities through Decidim to help users know which is # the scope of a participatory process. # (i.e. does it affect the whole city or just a district?) class Scope < ApplicationRecord belongs_to :organization, foreign_key: "decidim_organization_id", class_name: "Decidim::Organization", inverse_of: :scopes validates :name, presence: true, uniqueness: { scope: :organization } end end
Version data entries
9 entries across 9 versions & 1 rubygems