KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a table 'users' with column 'email'. It used to be unique (with index), but a new requirement is to allow nils there. Is there a better solution than: remove_index :users, :email add_index :users, :email ? Initially it was added with option unique: add_index :users, :email, :unique => true
Tags (comma-separated)
Save Edits
Cancel