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.24.2 lib/decidim/hashtag.rb
decidim-core-0.23.5 lib/decidim/hashtag.rb
decidim-core-0.24.1 lib/decidim/hashtag.rb
decidim-core-0.24.0 lib/decidim/hashtag.rb
decidim-core-0.24.0.rc2 lib/decidim/hashtag.rb
decidim-core-0.23.4 lib/decidim/hashtag.rb
decidim-core-0.24.0.rc1 lib/decidim/hashtag.rb
decidim-core-0.23.3 lib/decidim/hashtag.rb
decidim-core-0.23.2 lib/decidim/hashtag.rb
decidim-core-0.23.1 lib/decidim/hashtag.rb
decidim-core-0.23.1.rc1 lib/decidim/hashtag.rb
decidim-core-0.23.0 lib/decidim/hashtag.rb
decidim-core-0.22.0 lib/decidim/hashtag.rb
decidim-core-0.21.0 lib/decidim/hashtag.rb
decidim-core-0.20.1 lib/decidim/hashtag.rb
decidim-core-0.20.0 lib/decidim/hashtag.rb
decidim-core-0.19.1 lib/decidim/hashtag.rb
decidim-core-0.18.1 lib/decidim/hashtag.rb
decidim-core-0.19.0 lib/decidim/hashtag.rb
decidim-core-0.17.2 lib/decidim/hashtag.rb