gittip/www.gittip.com — pull request #2418 by Changaco (2014-05-18 12:54:07+00:00)
Title: Fix bountysource

This PR fixes #2382. In order to do that I had to drop the `NOT NULL` constraint on `elsewhere.user_name`, which required modifying some DB queries to use `user_id` instead of `user_name`. A nice side effect is that these queries will be faster because we have an index on `user_id`.

While I was at it I moved all the DB code that was in `gittip/elsewhere/__init__.py` to `gittip/models/account_elsewhere.py`. This is a first step towards moving the elsewhere code into its own library.