ensl.org/db/migrate/20100113005723_add_power.rb

12 lines
No EOL
231 B
Ruby

class AddPower < ActiveRecord::Migration
def self.up
User.all.each do |user|
if user.team
user.update_attribute :team_id, nil unless user.active_teams.include? user.team
end
end
end
def self.down
end
end