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

design.rb « design_management « models « user_mentions « background_migration « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d010d68600d0125a48d585e3c3f5d89ff88a7c05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# frozen_string_literal: true
# rubocop:disable Style/Documentation

module Gitlab
  module BackgroundMigration
    module UserMentions
      module Models
        module DesignManagement
          class Design < ActiveRecord::Base
            include EachBatch
            include Concerns::MentionableMigrationMethods

            self.table_name = 'design_management_designs'
            self.inheritance_column = :_type_disabled

            def self.user_mention_model
              Gitlab::BackgroundMigration::UserMentions::Models::DesignUserMention
            end

            def user_mention_model
              self.class.user_mention_model
            end

            def user_mention_resource_id
              id
            end

            def user_mention_note_id
              'NULL'
            end
          end
        end
      end
    end
  end
end