summaryrefslogtreecommitdiff
path: root/app/models/user_status.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/user_status.rb')
-rw-r--r--app/models/user_status.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/user_status.rb b/app/models/user_status.rb
index 016b89bae81..0e1ae0b7338 100644
--- a/app/models/user_status.rb
+++ b/app/models/user_status.rb
@@ -9,6 +9,8 @@ class UserStatus < ApplicationRecord
belongs_to :user
+ enum availability: { not_set: 0, busy: 1 }
+
validates :user, presence: true
validates :emoji, inclusion: { in: Gitlab::Emoji.emojis_names }
validates :message, length: { maximum: 100 }, allow_blank: true