Commit d54e6dc0 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'ignore-reindex-task-columns' into 'master'

Ignore unused columns at elastic_reindexing_tasks

See merge request gitlab-org/gitlab!54666
parents 8de5fa44 b0383933
# frozen_string_literal: true
class Elastic::ReindexingTask < ApplicationRecord
include IgnorableColumns
self.table_name = 'elastic_reindexing_tasks'
ignore_columns %i[documents_count index_name_from index_name_to elastic_task documents_count_target], remove_with: '14.0', remove_after: '2021-04-22'
has_many :subtasks, class_name: 'Elastic::ReindexingSubtask', foreign_key: :elastic_reindexing_task_id
enum state: {
......
......@@ -4,8 +4,6 @@ FactoryBot.define do
factory :elastic_reindexing_task, class: 'Elastic::ReindexingTask' do
state { :initial }
in_progress { true }
index_name_from { 'old_index_name' }
index_name_to { 'new_index_name' }
trait :with_subtask do
after(:create) do |task|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment