summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-22 09:13:02 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-23 09:31:57 -0600
commit0b27d63359cdc6968cbb48b56bd168bddc09950e (patch)
tree857e37d71a8affbcb4de1abf503d5b2fad72c64b /db/migrate
parent5c7f9d69e3db27921acf6d8259245f2b4babcc2b (diff)
downloadgitlab-ce-0b27d63359cdc6968cbb48b56bd168bddc09950e.tar.gz
Old migration doesn’t require downtime
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160610201627_migrate_users_notification_level.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20160610201627_migrate_users_notification_level.rb b/db/migrate/20160610201627_migrate_users_notification_level.rb
index 798e315102e..9da67b59dd1 100644
--- a/db/migrate/20160610201627_migrate_users_notification_level.rb
+++ b/db/migrate/20160610201627_migrate_users_notification_level.rb
@@ -2,6 +2,8 @@ class MigrateUsersNotificationLevel < ActiveRecord::Migration
# Migrates only users who changed their default notification level :participating
# creating a new record on notification settings table
+ DOWNTIME = false
+
def up
execute(%{
INSERT INTO notification_settings