Sha256: 9e91de19f55ce7d24c979df334d3710a0b19dd2c56f2d6044653c132f993f40e

Contents?: true

Size: 310 Bytes

Versions: 12

Compression:

Stored size: 310 Bytes

Contents

module BridgeCache
  class Tag < BridgeBaseModel
    extend BridgeCache::Data::BridgeModel

    has_many :taggings, foreign_key: :tag_id, primary_key: BridgeCache.primary_key,
                        class_name: BridgeCache::Tagging.name

    def self.unique_column_names
      %w[bridge_id]
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bridge_cache-0.4.7 app/models/bridge_cache/tag.rb
bridge_cache-0.4.6 app/models/bridge_cache/tag.rb
bridge_cache-0.4.5 app/models/bridge_cache/tag.rb
bridge_cache-0.4.4 app/models/bridge_cache/tag.rb
bridge_cache-0.4.3 app/models/bridge_cache/tag.rb
bridge_cache-0.4.2 app/models/bridge_cache/tag.rb
bridge_cache-0.4.1 app/models/bridge_cache/tag.rb
bridge_cache-0.3.24 app/models/bridge_cache/tag.rb
bridge_cache-0.3.23 app/models/bridge_cache/tag.rb
bridge_cache-0.3.22 app/models/bridge_cache/tag.rb
bridge_cache-0.3.21 app/models/bridge_cache/tag.rb
bridge_cache-0.3.20 app/models/bridge_cache/tag.rb