Sha256: 233a321ea1e4b04f9fb91eaa422993497d24ec6a028bf4d4234968e652d41a21
Contents?: true
Size: 943 Bytes
Versions: 16
Compression:
Stored size: 943 Bytes
Contents
module Katello class AnsibleCollection < ApplicationRecord include Concerns::PulpDatabaseUnit self.table_name = 'katello_ansible_collections' CONTENT_TYPE = 'ansible collection'.freeze has_many :ansible_collection_tags, :class_name => "Katello::AnsibleCollectionTag", :dependent => :delete_all has_many :tags, :through => :ansible_collection_tags scoped_search :on => :name, :complete_value => true scoped_search :on => :namespace, :complete_value => true, :rename => :author scoped_search :on => :version, :complete_value => true scoped_search :on => :checksum, :complete_value => true scoped_search :on => :name, :complete_value => true, :relation => :tags, :rename => :tag def self.default_sort order(:name) end def self.unit_id_field 'ansible_collection_id' end def self.total_for_repositories(repos) self.in_repositories(repos).count end end end
Version data entries
16 entries across 16 versions & 1 rubygems