debian-mirror-gitlab/app/models/projects/wiki_repository.rb
2023-01-13 15:02:22 +05:30

13 lines
333 B
Ruby

# frozen_string_literal: true
module Projects
class WikiRepository < ApplicationRecord
self.table_name = :project_wiki_repositories
belongs_to :project, inverse_of: :wiki_repository
validates :project, presence: true, uniqueness: true
end
end
Projects::WikiRepository.prepend_mod_with('Projects::WikiRepository')