summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-03-24 15:06:36 -0700
committerStan Hu <stanhu@gmail.com>2017-03-24 15:06:36 -0700
commitda74e97c894fa0ef24e520a2cfca92335bba5a99 (patch)
treeed2323ed061c5a7280b9796503d5644124071103 /app
parente1bb8c99cf7840c8b5d981111857b7d16b9cc1bd (diff)
downloadgitlab-ce-da74e97c894fa0ef24e520a2cfca92335bba5a99.tar.gz
Use default_value_for to set notified_of_own_activity instead of using a DB migration
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 5d19d873f43..b88d0ab66b1 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -22,6 +22,7 @@ class User < ActiveRecord::Base
default_value_for :hide_no_ssh_key, false
default_value_for :hide_no_password, false
default_value_for :project_view, :files
+ default_value_for :notified_of_own_activity, false
attr_encrypted :otp_secret,
key: Gitlab::Application.secrets.otp_key_base,