summaryrefslogtreecommitdiff
path: root/app/models/packages/debian/project_distribution.rb
blob: 22f1008b3b5cecbeb423c2153d4b2c788c16d7c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

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

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

  include Packages::Debian::Distribution
end