54
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