Skip to content

Commit

Permalink
Merge pull request #6666 from coolo/fix_6662
Browse files Browse the repository at this point in the history
Make it possible to preload architectures
  • Loading branch information
hennevogel committed Dec 20, 2018
2 parents 491b8f2 + 3daaab4 commit c5d34de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/repository.rb
Expand Up @@ -16,7 +16,7 @@ class Repository < ApplicationRecord
has_many :product_update_repositories, dependent: :delete_all
has_many :product_medium, dependent: :delete_all
has_many :repository_architectures, -> { order('position') }, dependent: :destroy, inverse_of: :repository
has_many :architectures, -> { order('position') }, through: :repository_architectures
has_many :architectures, through: :repository_architectures

scope :not_remote, -> { where(remote_project_name: '') }
scope :remote, -> { where.not(remote_project_name: '') }
Expand Down

0 comments on commit c5d34de

Please sign in to comment.