project_distribution.rb 393 Bytes
Newer Older
1 2 3 4 5 6 7
# frozen_string_literal: true

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

8 9
  include Packages::Debian::Distribution

Mathieu Parent's avatar
Mathieu Parent committed
10 11
  has_many :publications, class_name: 'Packages::Debian::Publication', inverse_of: :distribution, foreign_key: :distribution_id
  has_many :packages, class_name: 'Packages::Package', through: :publications
12
end