2019-01-03 12:48:30 +05:30
|
|
|
class CleanupUsersLdapEmailRename < ActiveRecord::Migration
|
2017-09-10 17:25:29 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
cleanup_concurrent_column_rename :users, :ldap_email, :external_email
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2018-11-18 11:00:15 +05:30
|
|
|
# rubocop:disable Migration/UpdateLargeTable
|
2017-09-10 17:25:29 +05:30
|
|
|
rename_column_concurrently :users, :external_email, :ldap_email
|
|
|
|
end
|
|
|
|
end
|