Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

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

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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions