debian-mirror-gitlab/app/models/namespaces/project_namespace.rb

16 lines
308 B
Ruby
Raw Normal View History

2021-11-11 11:23:49 +05:30
# 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
2022-01-26 12:08:38 +05:30
def self.polymorphic_name
'Namespaces::ProjectNamespace'
end
2021-11-11 11:23:49 +05:30
end
end