Sha256: bf304f1789b9637acf7304e0d4050a28df154db9c241498ea9e57a574e78e97d
Contents?: true
Size: 518 Bytes
Versions: 8
Compression:
Stored size: 518 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
8 entries across 8 versions & 1 rubygems