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

Can only register one account. #858

Closed
miguelhrocha opened this issue Apr 3, 2017 · 2 comments
Closed

Can only register one account. #858

miguelhrocha opened this issue Apr 3, 2017 · 2 comments

Comments

@miguelhrocha
Copy link

Hi everybody,

I want to implement this gem in my new rails app, I'm a RoR newbie and I'm really loving it. I come across this gem, install it and everything was cool. I can register 1 user but when I tried to register a second one it always throw me an error of 'An account already exists for xxx', I want a simple email registration. Anybody has any idea on how to fix this? If you need me to post another file just let me know.

Thanks.

@miguelhrocha
Copy link
Author

I have done more tests and I found that the problem is that I'm using SQL Server for my database. I run some tests on Postgres and everything worked like a charm.

Do you know if it's possible to make it work in MS SQL Server?

@miguelhrocha
Copy link
Author

I solved it,

The problem was in a couple of indixes that throw me a duplication error, these were:
add_index :users, :reset_password_token, unique: true
add_index :users, :confirmation_token, unique: true

I deleted the both and everything works.

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