summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2017-02-06 17:37:05 +0530
committerTimothy Andrew <mail@timothyandrew.net>2017-02-24 16:50:20 +0530
commit8e684809765fa866a125c176327825ebc565f5b3 (patch)
tree2086025a88fbdefbb355061eaf468e1db593adc9 /db/schema.rb
parent53c34c7436112d7cac9c3887ada1d5ae630a206c (diff)
downloadgitlab-ce-8e684809765fa866a125c176327825ebc565f5b3.tar.gz
Use a `ghost` boolean to track ghost users.
Rather than using a separate `ghost` state. This lets us have the benefits of both ghost and blocked users (ghost: true, state: blocked) without having to rewrite a number of queries to include cases for `state: ghost`.
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 82bccda580a..c50d6fc4ad6 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1282,6 +1282,7 @@ ActiveRecord::Schema.define(version: 20170216141440) do
t.string "incoming_email_token"
t.boolean "authorized_projects_populated"
t.boolean "notified_of_own_activity", default: false, null: false
+ t.boolean "ghost", default: false, null: false
end
add_index "users", ["admin"], name: "index_users_on_admin", using: :btree