Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_repository.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 38913f3f2f5139f4caebd8f123d9fd13e83a7a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class ProjectRepository < ActiveRecord::Base
  include Shardable

  belongs_to :project, inverse_of: :project_repository

  class << self
    def find_project(disk_path)
      find_by(disk_path: disk_path)&.project
    end
  end
end