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
1 changed files with 2 additions and 0 deletions

View File

@ -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