Skip to content

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

@bricesanchez

Description

@bricesanchez

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions