Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique Key for Provider and UID Combination #55

Closed
ghost opened this issue Oct 27, 2014 · 1 comment
Closed

Unique Key for Provider and UID Combination #55

ghost opened this issue Oct 27, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 27, 2014

Only UID is a unique key on User table
add_index :users, :uid, unique: true

I am suggesting
add_index :users, [:provider, :uid], unique: true

@lynndylanhurley
Copy link
Owner

Thanks @UrbanViking! I'll roll this out with the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant