diff options
| author | Jakub Jirutka <jakub@jirutka.cz> | 2012-07-29 16:15:52 +0200 |
|---|---|---|
| committer | Jakub Jirutka <jakub@jirutka.cz> | 2012-07-29 16:15:52 +0200 |
| commit | fa5a53f5ed2914052e07ef8fd46879576c978563 (patch) | |
| tree | 1940f94eeeb0bea0c63ee4d6c42682704d74bf9e /db/migrate | |
| parent | 8b7e404b5b6944e9c92cc270b2e5d0005781d49d (diff) | |
| download | gitlab-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.rb | 8 |
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 |
