uncomment the lines

uncomment the lines which were disabled for debug purposes in the
prev. commit
This commit is contained in:
Nuwan 2025-08-19 21:04:28 +05:30
parent d00a0c08f7
commit 0053775c7e
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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"