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

14 lines
236 B
Ruby
Raw Normal View History

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