I have set up Devise to allow a user to register with e-mail. Now I have included a Log In via LinkedIn with omniauth. Therefore I had to save provider as well as uid in the users table.
The problem I have now, is that the combination of provider and uid should be unique. But when a user decides to register with email I don't have any values for provider and uid. How can I deal with this problem in a good way?
I am new to Rails and did not find any other answers to it.
Thanks a lot!