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

15 lines
263 B
Ruby

# -*- encoding : utf-8 -*-
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