This MR speeds up the User.by_login
method a little bit.
It moves the logic to ruby so the db doesn't have to compare two slow fields.
See https://gitlab.com/gitlab-org/gitlab-ce/issues/2341#note_2146984
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data
This MR speeds up the User.by_login
method a little bit.
It moves the logic to ruby so the db doesn't have to compare two slow fields.
See https://gitlab.com/gitlab-org/gitlab-ce/issues/2341#note_2146984