debian-mirror-gitlab/app/models/packages/debian/project_distribution.rb
2022-03-02 08:16:31 +05:30

12 lines
393 B
Ruby

# 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
end