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

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

class WikiPage
  class Slug < ApplicationRecord
    def self.meta_foreign_key
      :wiki_page_meta_id
    end

    include HasWikiPageSlugAttributes

    self.table_name = 'wiki_page_slugs'

    belongs_to :wiki_page_meta, class_name: 'WikiPage::Meta', inverse_of: :slugs
  end
end