Class: Gitlab::BackgroundMigration::UserMentions::Models::Commit

Inherits:
Object
  • Object
show all
Includes:
EachBatch, Gitlab::BackgroundMigration::UserMentions::Models::Concerns::IsolatedMentionable, Gitlab::BackgroundMigration::UserMentions::Models::Concerns::MentionableMigrationMethods
Defined in:
lib/gitlab/background_migration/user_mentions/models/commit.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Gitlab::BackgroundMigration::UserMentions::Models::Concerns::IsolatedMentionable

#all_references, #array_to_sql, #build_mention_values, #extractors, #skip_project_check?

Class Method Details

.no_quote_columnsObject


29
30
31
# File 'lib/gitlab/background_migration/user_mentions/models/commit.rb', line 29

def self.no_quote_columns
  [:note_id]
end

.user_mention_modelObject


13
14
15
# File 'lib/gitlab/background_migration/user_mentions/models/commit.rb', line 13

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

Instance Method Details

#user_mention_modelObject


17
18
19
# File 'lib/gitlab/background_migration/user_mentions/models/commit.rb', line 17

def user_mention_model
  self.class.user_mention_model
end

#user_mention_note_idObject


25
26
27
# File 'lib/gitlab/background_migration/user_mentions/models/commit.rb', line 25

def user_mention_note_id
  'NULL'
end

#user_mention_resource_idObject


21
22
23
# File 'lib/gitlab/background_migration/user_mentions/models/commit.rb', line 21

def user_mention_resource_id
  id
end