Sha256: badb82735294d33b49a1326f6caf9348dfdc97d72af62c4c343e61dfad067e8f

Contents?: true

Size: 450 Bytes

Versions: 12

Compression:

Stored size: 450 Bytes

Contents

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

    belongs_to :user, foreign_key: :user_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::User.name, optional: true
    belongs_to :domain, foreign_key: :domain_id, primary_key: BridgeCache.primary_key, class_name: BridgeCache::Domain.name, optional: true

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bridge_cache-0.3.19 app/models/bridge_cache/grant.rb
bridge_cache-0.3.17 app/models/bridge_cache/grant.rb
bridge_cache-0.3.16 app/models/bridge_cache/grant.rb
bridge_cache-0.3.15 app/models/bridge_cache/grant.rb
bridge_cache-0.3.14 app/models/bridge_cache/grant.rb
bridge_cache-0.3.13 app/models/bridge_cache/grant.rb
bridge_cache-0.3.12 app/models/bridge_cache/grant.rb
bridge_cache-0.3.11 app/models/bridge_cache/grant.rb
bridge_cache-0.3.10 app/models/bridge_cache/grant.rb
bridge_cache-0.3.9 app/models/bridge_cache/grant.rb
bridge_cache-0.3.8 app/models/bridge_cache/grant.rb
bridge_cache-0.3.7 app/models/bridge_cache/grant.rb