mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add migration to confirm already confirmed email addresses
This commit is contained in:
committed by
Rob Harrington
parent
eb1c598a6c
commit
a6f2ee1367
@@ -0,0 +1,5 @@
|
||||
class CopyConfirmedAtFromEnterprisesToSpreeUsers < ActiveRecord::Migration
|
||||
def up
|
||||
execute "UPDATE spree_users SET confirmed_at = enterprises.confirmed_at FROM enterprises WHERE spree_users.email = enterprises.email AND enterprises.confirmed_at IS NOT NULL"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user