diff --git a/db/migrate/20120427162634_move_migration_notifications_to_separate_category.rb b/db/migrate/20120427162634_move_migration_notifications_to_separate_category.rb index 1b06594cd32..b00bcad0a0d 100644 --- a/db/migrate/20120427162634_move_migration_notifications_to_separate_category.rb +++ b/db/migrate/20120427162634_move_migration_notifications_to_separate_category.rb @@ -2,11 +2,13 @@ class MoveMigrationNotificationsToSeparateCategory < ActiveRecord::Migration tag :postdeploy def self.up + return unless Shard.current == Shard.default Notification.where(:name => ['Migration Export Ready', 'Migration Import Finished', 'Migration Import Failed']). update_all(:category => 'Migration') end def self.down + return unless Shard.current == Shard.default Notification.where(:name => ['Migration Export Ready', 'Migration Import Finished', 'Migration Import Failed']). update_all(:category => 'Other') end