Last active
August 29, 2015 14:22
-
-
Save jhjwind/160c9b65c092832949e6 to your computer and use it in GitHub Desktop.
Profile model deprecation plan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Step 1 | |
heroku run rake db:migrate | |
#step 2 | |
heroku run rake profiles_to_companies:move_active | |
heroku run rake profiles_to_companies:move_inactive | |
heroku run rake remove_profile:migrate_profile | |
#step 3 | |
heroku run rake remove_profile:migrate_seats | |
heroku run rake remove_profile:migrate_follows | |
heroku run rake remove_profile:migrate_votes | |
heroku run rake remove_profile:migrate_tags | |
heroku run rake remove_profile:migrate_attendance | |
heroku run rake remove_profile:migrate_flags | |
heroku run rake remove_profile:migrate_scores | |
heroku run rake remove_profile:ensure_initial_location_id_is_present | |
heroku run rake remove_profile:ensure_current_location_id_is_present | |
heroku run rake remove_profile:migrate_remaining_location_stuff | |
heroku run rake remove_profile:migrate_events | |
#step 4 reindex | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
backup MENA production db first!
heroku maintenance:on
migration
turn off sidekiq, rabbitmq workers
clear cache