summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2012-07-29 16:15:52 +0200
committerJakub Jirutka <jakub@jirutka.cz>2012-07-29 16:15:52 +0200
commitfa5a53f5ed2914052e07ef8fd46879576c978563 (patch)
tree1940f94eeeb0bea0c63ee4d6c42682704d74bf9e /db/migrate
parent8b7e404b5b6944e9c92cc270b2e5d0005781d49d (diff)
downloadgitlab-ce-fa5a53f5ed2914052e07ef8fd46879576c978563.tar.gz
Change identification of users with extern auth provider (LDAP)
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20120729131232_add_extern_auth_provider_to_users.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20120729131232_add_extern_auth_provider_to_users.rb b/db/migrate/20120729131232_add_extern_auth_provider_to_users.rb
new file mode 100644
index 00000000000..d5e66ba4d3b
--- /dev/null
+++ b/db/migrate/20120729131232_add_extern_auth_provider_to_users.rb
@@ -0,0 +1,8 @@
+class AddExternAuthProviderToUsers < ActiveRecord::Migration
+ def change
+ add_column :users, :extern_uid, :string
+ add_column :users, :provider, :string
+
+ add_index :users, [:extern_uid, :provider], :unique => true
+ end
+end