rosa-build/db/migrate/20120111135443_add_settings...

15 lines
263 B
Ruby
Raw Normal View History

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