Skip to content

Commit 0b27d63

Browse files
committed
Old migration doesn’t require downtime
1 parent 5c7f9d6 commit 0b27d63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

db/migrate/20160610201627_migrate_users_notification_level.rb

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ class MigrateUsersNotificationLevel < ActiveRecord::Migration
22
# Migrates only users who changed their default notification level :participating
33
# creating a new record on notification settings table
44

5+
DOWNTIME = false
6+
57
def up
68
execute(%{
79
INSERT INTO notification_settings

0 commit comments

Comments
 (0)