summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2016-05-16 21:05:05 +0000
committerDouwe Maan <douwe@gitlab.com>2016-05-16 21:05:05 +0000
commit8b15628dd0de2474ad662b8d78a7c9a466e2a296 (patch)
treefd03df9f42522ec0eaeef80c31d3a5e7935df380 /db
parentc9649198a1711596e203b00d7b2b31ba2ac3a0da (diff)
parentecce94d3aab57e099a8897a860023b8ec7acac05 (diff)
downloadgitlab-ce-8b15628dd0de2474ad662b8d78a7c9a466e2a296.tar.gz
Merge branch 'issue_14684' into 'master'
Toggle email signup confirmation in admin settings Implements toggling verification email #14684 See merge request !3862
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160516174813_add_send_user_confirmation_email_to_application_settings.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20160516174813_add_send_user_confirmation_email_to_application_settings.rb b/db/migrate/20160516174813_add_send_user_confirmation_email_to_application_settings.rb
new file mode 100644
index 00000000000..c34e7ba5409
--- /dev/null
+++ b/db/migrate/20160516174813_add_send_user_confirmation_email_to_application_settings.rb
@@ -0,0 +1,12 @@
+class AddSendUserConfirmationEmailToApplicationSettings < ActiveRecord::Migration
+ def up
+ add_column :application_settings, :send_user_confirmation_email, :boolean, default: false
+
+ #Sets confirmation email to true by default on existing installations.
+ execute "UPDATE application_settings SET send_user_confirmation_email=true"
+ end
+
+ def down
+ remove_column :application_settings, :send_user_confirmation_email
+ end
+end