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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Bobbitt <ryehle@us.ibm.com>2017-06-06 18:36:55 +0300
committerRobin Bobbitt <ryehle@us.ibm.com>2017-06-07 18:13:57 +0300
commit8fdba5fac2a5fb4ce17a11580e94a85257e76e2c (patch)
tree916a09bee7bff3ff36862d3cde11ed29977ca416 /db/migrate/20170531202042_rename_users_ldap_email_to_external_email.rb
parent0bcb1d35ecb7db43a075c0a4ae9782991f724f1a (diff)
Sync email address from specified omniauth provider - db changes
Diffstat (limited to 'db/migrate/20170531202042_rename_users_ldap_email_to_external_email.rb')
-rw-r--r--db/migrate/20170531202042_rename_users_ldap_email_to_external_email.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20170531202042_rename_users_ldap_email_to_external_email.rb b/db/migrate/20170531202042_rename_users_ldap_email_to_external_email.rb
new file mode 100644
index 00000000000..470c3b8166c
--- /dev/null
+++ b/db/migrate/20170531202042_rename_users_ldap_email_to_external_email.rb
@@ -0,0 +1,15 @@
+class RenameUsersLdapEmailToExternalEmail < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ rename_column_concurrently :users, :ldap_email, :external_email
+ end
+
+ def down
+ cleanup_concurrent_column_rename :users, :external_email, :ldap_email
+ end
+end