2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2012-01-11 13:58:13 +00:00
|
|
|
class AddSettingsNotifierToAllUsers < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
User.all.each do |user|
|
|
|
|
user.create_notifier
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
User.all.each do |user|
|
|
|
|
user.notifier.destroy
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|