diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-05-04 20:42:10 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-05-06 09:27:46 +0300 |
commit | 47da013cf83b4a42fc9f4b049d8ba41dc3f325d2 (patch) | |
tree | f0e56c0ffedd1bff048a91c736d96b9b6365e2a6 /app/models/notification_setting.rb | |
parent | c583433862558550c8caedb03217880568dcdefc (diff) |
Annotate the models
Diffstat (limited to 'app/models/notification_setting.rb')
-rw-r--r-- | app/models/notification_setting.rb | 13 |
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 } |