3 Commits

Author SHA1 Message Date
Greg Karékinian
9386666610 Add a migration runner to be able to run the script on all users...
... on as many servers as we want

Set the migration key in platform for all users:

    User.storage_customer.each do |u|
      FiveAppsStore::Application.redis_remotestorage.hset(
        "rs:size_migration", u.username, "not_started"
      )
    end
2016-12-15 16:28:19 +01:00
Greg Karékinian
97a77e2a2c Remove unused test key passed to the eval command 2016-12-15 15:34:51 +01:00
Greg Karékinian
a7c5808593 Add a script to calculate a user's storage size from the metadata...
... And write it to Redis

Usage:

   ENVIRONMENT=development ./migrate_storage_size_from_metadata.rb username
2016-12-15 13:21:54 +01:00