uncomment the lines
uncomment the lines which were disabled for debug purposes in the prev. commit
This commit is contained in:
parent
4fafe30141
commit
eab17b3340
|
|
@ -7,9 +7,9 @@
|
||||||
execute "ALTER TABLE users ADD COLUMN profile_complete_reminder2_sent_at TIMESTAMP"
|
execute "ALTER TABLE users ADD COLUMN profile_complete_reminder2_sent_at TIMESTAMP"
|
||||||
execute "ALTER TABLE users ADD COLUMN profile_complete_reminder3_sent_at TIMESTAMP"
|
execute "ALTER TABLE users ADD COLUMN profile_complete_reminder3_sent_at TIMESTAMP"
|
||||||
|
|
||||||
# User.find_each(batch_size:100) do |user|
|
User.find_each(batch_size:100) do |user|
|
||||||
# User.where(id:user.id).update_all(profile_completed_at: Time.now)
|
User.where(id:user.id).update_all(profile_completed_at: Time.now)
|
||||||
# end
|
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)
|
#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
|
end
|
||||||
def self.down
|
def self.down
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
class AddSignupSurveySentAtToUsers < ActiveRecord::Migration
|
class AddSignupSurveySentAtToUsers < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
execute "ALTER TABLE users ADD COLUMN signup_survey_sent_at TIMESTAMP"
|
execute "ALTER TABLE users ADD COLUMN signup_survey_sent_at TIMESTAMP"
|
||||||
# User.find_each(batch_size:100) do |user|
|
User.find_each(batch_size:100) do |user|
|
||||||
# User.where(id:user.id).update_all(signup_survey_sent_at: Time.now)
|
User.where(id:user.id).update_all(signup_survey_sent_at: Time.now)
|
||||||
# end
|
end
|
||||||
end
|
end
|
||||||
def self.down
|
def self.down
|
||||||
execute "ALTER TABLE users DROP COLUMN signup_survey_sent_at"
|
execute "ALTER TABLE users DROP COLUMN signup_survey_sent_at"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue