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

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

class RenameSnowplowSiteIdToSnowplowAppId < ActiveRecord::Migration[5.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    rename_column_concurrently :application_settings, :snowplow_site_id, :snowplow_app_id
  end

  def down
    undo_rename_column_concurrently :application_settings, :snowplow_site_id, :snowplow_app_id
  end
end