diff options
Diffstat (limited to 'app/models/packages/debian/file_metadatum.rb')
-rw-r--r-- | app/models/packages/debian/file_metadatum.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/packages/debian/file_metadatum.rb b/app/models/packages/debian/file_metadatum.rb index 7c9f4f5f3f1..af51f256e18 100644 --- a/app/models/packages/debian/file_metadatum.rb +++ b/app/models/packages/debian/file_metadatum.rb @@ -1,6 +1,8 @@ # frozen_string_literal: true class Packages::Debian::FileMetadatum < ApplicationRecord + self.primary_key = :package_file_id + belongs_to :package_file, inverse_of: :debian_file_metadatum validates :package_file, presence: true |