summaryrefslogtreecommitdiff
path: root/app/models/notification_setting.rb
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-05-04 19:42:10 +0200
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2016-05-06 08:27:46 +0200
commit47da013cf83b4a42fc9f4b049d8ba41dc3f325d2 (patch)
treef0e56c0ffedd1bff048a91c736d96b9b6365e2a6 /app/models/notification_setting.rb
parentc583433862558550c8caedb03217880568dcdefc (diff)
downloadgitlab-ce-47da013cf83b4a42fc9f4b049d8ba41dc3f325d2.tar.gz
Annotate the models
Diffstat (limited to 'app/models/notification_setting.rb')
-rw-r--r--app/models/notification_setting.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/notification_setting.rb b/app/models/notification_setting.rb
index 5001738f411..846773752a6 100644
--- a/app/models/notification_setting.rb
+++ b/app/models/notification_setting.rb
@@ -1,3 +1,16 @@
+# == Schema Information
+#
+# Table name: notification_settings
+#
+# id :integer not null, primary key
+# user_id :integer not null
+# source_id :integer not null
+# source_type :string not null
+# level :integer default(0), not null
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
class NotificationSetting < ActiveRecord::Base
enum level: { disabled: 0, participating: 1, watch: 2, global: 3, mention: 4 }