mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
12 lines
No EOL
231 B
Ruby
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 |