Old migration doesn’t require downtime

This commit is contained in:
Douwe Maan 2017-02-22 09:13:02 -06:00
parent 5c7f9d69e3
commit 0b27d63359

View file

@ -2,6 +2,8 @@ class MigrateUsersNotificationLevel < ActiveRecord::Migration
# Migrates only users who changed their default notification level :participating # Migrates only users who changed their default notification level :participating
# creating a new record on notification settings table # creating a new record on notification settings table
DOWNTIME = false
def up def up
execute(%{ execute(%{
INSERT INTO notification_settings INSERT INTO notification_settings