Skip to content

Commit acaacc3

Browse files
committed
Fix user migration
1 parent 6c844a4 commit acaacc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/main/migrate/20210203143406_confirm_current_users.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class User < ActiveRecord::Base
99
def change
1010
time_now = Time.zone.now - 21.days
1111
User.all.in_batches do |users|
12-
users.update_all(confirmed_at: time_now, confirmation_sent_at: time_now)
12+
users.update_all(confirmed_at: time_now)
1313
end
1414
end
1515
end

0 commit comments

Comments
 (0)