Topic: redesign instead of refactoring
I have a general question for the re-design of a running application.
I think you all know the situation, when refactoring would be much more complicated than an elegant redesign. I my situation, I need an improvement of my very first rails-app.
How do you do this with data-models and their migrations? I have a bunch of migrations in the old app, to create the models. In the new one, I'll make some improvements to the data-models (e.g. split one table into two tables, when seperating a model). But I have to use the old production-data and therefore I have to modify them.
Should I write a rake-task, to perform this action *once*, or take the old schema.rb as the origin of my new app and write the migrations based on the old schema?
If anyone of you has some experience on this topic, please let me know, how you did it. Any other suggestions are welcome.