Commit 9f7215afe0abb89066e9d19746806b6f5469bfa3
1 parent
3ac3a0d2
Exists in
master
and in
1 other branch
interval for notifications
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
db/migrate/20130212112719_add_interval_field_for_notifications.rb
0 → 100644
| @@ -0,0 +1,12 @@ | @@ -0,0 +1,12 @@ | ||
| 1 | +class AddIntervalFieldForNotifications < Mongoid::Migration | ||
| 2 | + def self.up | ||
| 3 | + App.all.each do |app| | ||
| 4 | + if app.notification_service | ||
| 5 | + app.notification_service.update_attributes(:notify_at_notices => [0]) | ||
| 6 | + end | ||
| 7 | + end | ||
| 8 | + end | ||
| 9 | + | ||
| 10 | + def self.down | ||
| 11 | + end | ||
| 12 | +end |