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

20221110105857_add_index_for_in_product_marketing_email_metrics.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f1bc07e41970ba1b283eaadd904ad453b4b8e0de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class AddIndexForInProductMarketingEmailMetrics < Gitlab::Database::Migration[2.0]
  disable_ddl_transaction!

  INDEX_NAME = 'index_in_product_marketing_emails_on_track_series_id_clicked'

  def up
    add_concurrent_index :in_product_marketing_emails, %i[track series id cta_clicked_at], name: INDEX_NAME
  end

  def down
    remove_concurrent_index_by_name :in_product_marketing_emails, INDEX_NAME
  end
end