diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 09:13:02 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:31:57 -0600 |
commit | 0b27d63359cdc6968cbb48b56bd168bddc09950e (patch) | |
tree | 857e37d71a8affbcb4de1abf503d5b2fad72c64b /db/migrate | |
parent | 5c7f9d69e3db27921acf6d8259245f2b4babcc2b (diff) | |
download | gitlab-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.rb | 2 |
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 |