summaryrefslogtreecommitdiff
path: root/app/models/identity.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-05 14:20:55 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-05 14:20:55 -0800
commit62ed1c537e9b8aa85d354b377f18083fb71b8e05 (patch)
treea1b75f804b2e9384190f9d591a2f2701ea8d31db /app/models/identity.rb
parentdbca8c97588d1fcc4155b079eb54157991be3aa7 (diff)
downloadgitlab-ce-62ed1c537e9b8aa85d354b377f18083fb71b8e05.tar.gz
Explicitly define ordering in models using default_scope
Diffstat (limited to 'app/models/identity.rb')
-rw-r--r--app/models/identity.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/identity.rb b/app/models/identity.rb
index 80e0e3a8a23..b2c3792d1ce 100644
--- a/app/models/identity.rb
+++ b/app/models/identity.rb
@@ -9,6 +9,7 @@
#
class Identity < ActiveRecord::Base
+ include Sortable
belongs_to :user
validates :extern_uid, allow_blank: true, uniqueness: { scope: :provider }