I have a fairly complex Rails app built on top of Twitter's API, and want to make the whole app case-insensitive.
Up until now, we've been converting all usernames and other strings to .downcase whenever possible and using the default case-sensitive searches, but that's starting to cause problems, with 'Username' and 'username' being considered different users.
Do I need to set this validation:
validates_uniqueness_of :username, :case_sensitive => false
somewhere on every one of my models (there are a lot) and remove all instances of .downcase from the app (there are a TON)? Any other ideas?
Note: this app isn't live yet, so I don't mind wiping all the data it's storing right now, if necessary.