spree/spree — pull request #842 by five18pm (2011-12-05 19:44:09+00:00)
Title: Fixes for broken migrations

I was playing with the latest code using an existing 0.60.3 database and saw a bunch of migrations failing due to namespace/preferences changes. I made changes for those as well as for issue #841 which cropped up after the preferences changes.

Fixed migration for more polymorphic models - I think I covered all polymorphic models, but it will be good to review.

Not sure whether the below fixes are the right ones, specially the one for migrating existing configurations:
Migration of Configurations was failing due to new preferences changes
Setting up mail settings moved from initializer/spree to spree/engine (fix for #841)