@@ -43,19 +43,22 @@ namespace :ofn do
4343 def anonymize_users_data
4444 Spree ::User . update_all ( "email = concat(id, '_ofn_user@example.com'),
4545 login = concat(id, '_ofn_user@example.com'),
46- unconfirmed_email = concat(id, '_ofn_user@example.com')" )
46+ unconfirmed_email = concat(id, '_ofn_user@example.com'),
47+ current_sign_in_ip = '0.0.0.0',
48+ last_sign_in_ip = '0.0.0.0'" )
4749 Customer . where ( user_id : nil )
4850 . update_all ( "email = concat(id, '_ofn_customer@example.com'),
4951 name = concat('Customer Number ', id, ' (without connected User)'),
5052 first_name = concat('Customer Number ', id),
5153 last_name = '(without connected User)'" )
5254 Customer . where . not ( user_id : nil )
53- . update_all ( "email = concat(user_id, '_ofn_user@example.com'),
55+ . update_all ( "email = concat(user_id, '_ofn_user+customer_', id, ' @example.com'),
5456 name = concat('Customer Number ', id, ' - User ', user_id),
5557 first_name = concat('Customer Number ', id),
5658 last_name = concat('User ', user_id)" )
5759
58- Spree ::Order . update_all ( "email = concat(id, '_ofn_order@example.com')" )
60+ Spree ::Order . update_all ( "email = concat(id, '_ofn_order@example.com'),
61+ last_ip_address = '0.0.0.0'" )
5962 end
6063
6164 def anonymize_payments_data
0 commit comments