From 0053775c7eac33482e54056b3532b5017e76d7df Mon Sep 17 00:00:00 2001 From: Nuwan Date: Tue, 19 Aug 2025 21:04:28 +0530 Subject: [PATCH] uncomment the lines uncomment the lines which were disabled for debug purposes in the prev. commit --- .../20250227125441_add_profile_complete_columns_to_users.rb | 6 +++--- .../20250605092511_add_signup_survey_sent_at_to_users.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ruby/db/migrate/20250227125441_add_profile_complete_columns_to_users.rb b/ruby/db/migrate/20250227125441_add_profile_complete_columns_to_users.rb index f80af7069..2fef976d3 100644 --- a/ruby/db/migrate/20250227125441_add_profile_complete_columns_to_users.rb +++ b/ruby/db/migrate/20250227125441_add_profile_complete_columns_to_users.rb @@ -7,9 +7,9 @@ execute "ALTER TABLE users ADD COLUMN profile_complete_reminder2_sent_at TIMESTAMP" execute "ALTER TABLE users ADD COLUMN profile_complete_reminder3_sent_at TIMESTAMP" - # User.find_each(batch_size:100) do |user| - # User.where(id:user.id).update_all(profile_completed_at: Time.now) - # end + User.find_each(batch_size:100) do |user| + User.where(id:user.id).update_all(profile_completed_at: Time.now) + end #User.where('users.id IN (SELECT player_id FROM musicians_instruments) OR users.id IN (SELECT player_id FROM genre_players)').update_all(profile_completed_at: Time.now) end def self.down diff --git a/ruby/db/migrate/20250605092511_add_signup_survey_sent_at_to_users.rb b/ruby/db/migrate/20250605092511_add_signup_survey_sent_at_to_users.rb index fdd98c0cc..f8f271c99 100644 --- a/ruby/db/migrate/20250605092511_add_signup_survey_sent_at_to_users.rb +++ b/ruby/db/migrate/20250605092511_add_signup_survey_sent_at_to_users.rb @@ -1,9 +1,9 @@ class AddSignupSurveySentAtToUsers < ActiveRecord::Migration def self.up execute "ALTER TABLE users ADD COLUMN signup_survey_sent_at TIMESTAMP" - # User.find_each(batch_size:100) do |user| - # User.where(id:user.id).update_all(signup_survey_sent_at: Time.now) - # end + User.find_each(batch_size:100) do |user| + User.where(id:user.id).update_all(signup_survey_sent_at: Time.now) + end end def self.down execute "ALTER TABLE users DROP COLUMN signup_survey_sent_at"