diff options
Diffstat (limited to 'app/models/projects/wiki_repository.rb')
-rw-r--r-- | app/models/projects/wiki_repository.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/projects/wiki_repository.rb b/app/models/projects/wiki_repository.rb new file mode 100644 index 00000000000..88382adbcb7 --- /dev/null +++ b/app/models/projects/wiki_repository.rb @@ -0,0 +1,13 @@ +# 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') |