diff options
Diffstat (limited to 'db/migrate/20200623141544_create_elastic_reindexing_task.rb')
-rw-r--r-- | db/migrate/20200623141544_create_elastic_reindexing_task.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/db/migrate/20200623141544_create_elastic_reindexing_task.rb b/db/migrate/20200623141544_create_elastic_reindexing_task.rb deleted file mode 100644 index 7089df4f1ea..00000000000 --- a/db/migrate/20200623141544_create_elastic_reindexing_task.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true - -class CreateElasticReindexingTask < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - create_table :elastic_reindexing_tasks do |t| - t.timestamps_with_timezone null: false - t.integer :documents_count - t.integer :state, null: false, default: 0, limit: 2, index: true - t.boolean :in_progress, null: false, default: true - t.text :index_name_from - t.text :index_name_to - t.text :elastic_task - t.text :error_message - end - - add_text_limit :elastic_reindexing_tasks, :index_name_from, 255 - add_text_limit :elastic_reindexing_tasks, :index_name_to, 255 - add_text_limit :elastic_reindexing_tasks, :elastic_task, 255 - add_text_limit :elastic_reindexing_tasks, :error_message, 255 - - add_index :elastic_reindexing_tasks, :in_progress, unique: true, where: 'in_progress' - end - - def down - drop_table :elastic_reindexing_tasks - end -end |