Closed spinosa closed 12 years ago
I ran through all non-faux users, their nickname (which is unique in DB) matches their downcase nickname. So the index should be buildable w/ everything already unique.
But arnold uses it, so it's difficult to drop/create.
User.collection.drop_index('downcase_nickname_1')
User.ensure_index(:downcase_nickname, :background => true, :unique => true)
I ran through all non-faux users, their nickname (which is unique in DB) matches their downcase nickname. So the index should be buildable w/ everything already unique.
But arnold uses it, so it's difficult to drop/create.
User.collection.drop_index('downcase_nickname_1')
User.ensure_index(:downcase_nickname, :background => true, :unique => true)