Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_distribution.rb « debian « packages « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5ac60d789b3b46c5ba2b4bb8e8e1f5abef8b87d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class Packages::Debian::ProjectDistribution < ApplicationRecord
  def self.container_type
    :project
  end

  include Packages::Debian::Distribution

  has_many :publications, class_name: 'Packages::Debian::Publication', inverse_of: :distribution, foreign_key: :distribution_id
  has_many :packages, class_name: 'Packages::Package', through: :publications
  has_many :package_files, class_name: 'Packages::PackageFile', through: :packages
end