Change identification of users with extern auth provider (LDAP)

This commit is contained in:
Jakub Jirutka 2012-07-29 16:15:52 +02:00
parent 8b7e404b5b
commit fa5a53f5ed
4 changed files with 26 additions and 9 deletions

View file

@ -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