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.27.1 lib/decidim/hashtag.rb
decidim-core-0.26.4 lib/decidim/hashtag.rb
decidim-core-0.27.0 lib/decidim/hashtag.rb
decidim-core-0.26.3 lib/decidim/hashtag.rb
decidim-core-0.27.0.rc2 lib/decidim/hashtag.rb
decidim-core-0.27.0.rc1 lib/decidim/hashtag.rb
decidim-core-0.26.2 lib/decidim/hashtag.rb
decidim-core-0.26.1 lib/decidim/hashtag.rb
decidim-core-0.26.0 lib/decidim/hashtag.rb
decidim-core-0.26.0.rc2 lib/decidim/hashtag.rb
decidim-core-0.26.0.rc1 lib/decidim/hashtag.rb
decidim-core-0.25.2 lib/decidim/hashtag.rb
decidim-core-0.25.1 lib/decidim/hashtag.rb
decidim-core-0.25.0 lib/decidim/hashtag.rb
decidim-core-0.25.0.rc4 lib/decidim/hashtag.rb
decidim-core-0.25.0.rc3 lib/decidim/hashtag.rb
decidim-core-0.25.0.rc2 lib/decidim/hashtag.rb
decidim-core-0.25.0.rc1 lib/decidim/hashtag.rb
decidim-core-0.24.3 lib/decidim/hashtag.rb
decidim-core-0.23.6 lib/decidim/hashtag.rb