2021-03-08 18:12:59 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Packages::Debian::ProjectDistribution < ApplicationRecord
|
|
|
|
def self.container_type
|
|
|
|
:project
|
|
|
|
end
|
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
include Packages::Debian::Distribution
|
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
has_many :publications, class_name: 'Packages::Debian::Publication', inverse_of: :distribution, foreign_key: :distribution_id
|
|
|
|
has_many :packages, class_name: 'Packages::Package', through: :publications
|
2021-06-08 01:23:25 +05:30
|
|
|
has_many :package_files, class_name: 'Packages::PackageFile', through: :packages
|
2021-03-08 18:12:59 +05:30
|
|
|
end
|