gitlab-org--gitlab-foss/app/models/namespaces/project_namespace.rb

15 lines
308 B
Ruby

# frozen_string_literal: true
module Namespaces
class ProjectNamespace < Namespace
has_one :project, foreign_key: :project_namespace_id, inverse_of: :project_namespace
def self.sti_name
'Project'
end
def self.polymorphic_name
'Namespaces::ProjectNamespace'
end
end
end