spree/spree — pull request #1077 by five18pm (2012-02-02 18:39:09+00:00)
Title: Migrated preferences do not have keys - causes rails server start up failure

Preferences from previous versions of Spree do not have a `key` when migrated to Spree 1.0.0. So the code to write these values to cache fails. Since these values are loaded at startup, this causes server startup to fail.

Correct solution would be to properly migrate preferences from previous version so that keys are always present. This pull request however allows a quick fix for people who are migrating from previous versions to Spree 1.0.0.

Was the new preferences code tested for upgrade of Spree? It pretty much seems like it was not tested for it.