Skip to content

Instantly share code, notes, and snippets.

@jhjwind
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhjwind/160c9b65c092832949e6 to your computer and use it in GitHub Desktop.
Save jhjwind/160c9b65c092832949e6 to your computer and use it in GitHub Desktop.
Profile model deprecation plan
#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
@jhjwind
Copy link
Author

jhjwind commented Jun 15, 2015

backup MENA production db first!
heroku maintenance:on
migration
turn off sidekiq, rabbitmq workers
clear cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment