ShelbyTV / shelby_gt

Rails API services for Shelby GT
2 stars 0 forks source link

User.downcase_nickname index should be unique #104

Closed spinosa closed 12 years ago

spinosa commented 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.

  1. Stop ArnoldGTs
  2. User.collection.drop_index('downcase_nickname_1')
  3. User.ensure_index(:downcase_nickname, :background => true, :unique => true)
  4. Start ArnoldGTs