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

Login without email impossible due to unique index on email column #419

Open
bricesanchez opened this issue Mar 9, 2018 · 0 comments
Open

Comments

@bricesanchez
Copy link
Contributor

Hi !

I face a problem with spree_auth_devise when i don't want to use email field in Spree::User records.

I'm able to disable validate presence of email like we can do it in Devise:
https://github.com/plataformatec/devise/blob/master/lib/devise/models/validatable.rb#L37

But spree_users table has a unique index on email column who prevents me to validate a record without email starting from the second record without email:
https://github.com/spree/spree_auth_devise/blob/master/db/migrate/20120605211305_make_users_email_index_unique.rb

Could we rollback this migration?

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