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

Version Path
decidim-core-0.28.4 lib/decidim/hashtag.rb
decidim-core-0.27.9 lib/decidim/hashtag.rb
decidim-core-0.28.3 lib/decidim/hashtag.rb
decidim-core-0.27.8 lib/decidim/hashtag.rb
decidim-core-0.28.2 lib/decidim/hashtag.rb
decidim-core-0.27.7 lib/decidim/hashtag.rb
decidim-core-0.28.1 lib/decidim/hashtag.rb
decidim-core-0.27.6 lib/decidim/hashtag.rb
decidim-core-0.26.10 lib/decidim/hashtag.rb
decidim-core-0.26.9 lib/decidim/hashtag.rb
decidim-core-0.28.0 lib/decidim/hashtag.rb
decidim-core-0.27.5 lib/decidim/hashtag.rb
decidim-core-0.28.0.rc5 lib/decidim/hashtag.rb
decidim-core-0.28.0.rc4 lib/decidim/hashtag.rb
decidim-core-0.26.8 lib/decidim/hashtag.rb
decidim-core-0.27.4 lib/decidim/hashtag.rb
decidim-core-0.27.3 lib/decidim/hashtag.rb
decidim-core-0.26.7 lib/decidim/hashtag.rb
decidim-core-0.26.5 lib/decidim/hashtag.rb
decidim-core-0.27.2 lib/decidim/hashtag.rb