Sha256: 827f4241742bb9be95c162cedf4dd5b7a2feb79ad423912d06230acd0e837365
Contents?: true
Size: 395 Bytes
Versions: 65
Compression:
Stored size: 395 Bytes
Contents
# frozen_string_literal: true module Decidim # A hasthag is used to categorize components class Hashtag < ApplicationRecord self.table_name = "decidim_hashtags" belongs_to :organization, foreign_key: "decidim_organization_id", class_name: "Decidim::Organization" validates :name, presence: true validates :name, uniqueness: { scope: [:decidim_organization_id] } end end
Version data entries
65 entries across 65 versions & 1 rubygems