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

20170531203055_cleanup_users_ldap_email_rename.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3d75c7e3eaf358337c25648632061a73986f1e45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class CleanupUsersLdapEmailRename < ActiveRecord::Migration[4.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    cleanup_concurrent_column_rename :users, :ldap_email, :external_email
  end

  def down
    # rubocop:disable Migration/UpdateLargeTable
    rename_column_concurrently :users, :external_email, :ldap_email
  end
end