blob: e206aaae8d2f206ea4975a1584246639a1cd99e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
class BackfillUserUsername < ActiveRecord::Migration[5.2]
def up
User.find_each do |user|
user.update!(username: user.account.username)
end
end
def down
nil
end
end
|