summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration/user_mentions/models/design_management/design.rb
blob: bdb90b5d2b9dccf797cab8eedd890ef98d24530e (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
# 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

            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